Skip to content

Commit

Permalink
make the plugin compatible to older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kringkaste committed May 12, 2021
1 parent fe933b9 commit 0602d8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Instagram Feed Changelog

## Unreleased
## 1.1.2 - 2021-05-12

### Fixed
- Required Craft version in Readme.
### Changed
- We made the plugin compatible to older Craft versions again. Changed the required version back to >= 3.0.0.

## 1.1.1 - 2021-04-29

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This only works with **public** profiles.

## Requirements

* Craft CMS >= 3.5.0
* Craft CMS >= 3.0.0

## Installation

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "codemonauts/craft-instagram-feed",
"description": "Craft CMS plugin to receive Instragram feed data as variable in templates.",
"version": "1.1.1",
"version": "1.1.2",
"type": "craft-plugin",
"keywords": [
"craft",
Expand All @@ -23,7 +23,7 @@
"issues": "https://github.com/codemonauts/craft-instagram-feed/issues"
},
"require": {
"craftcms/cms": "^3.5.0",
"craftcms/cms": "^3.0.0",
"ext-json": "*",
"php": "^7.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/services/InstagramService.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ private function storeImages(array $items): array
$asset->tempFilePath = $tempFilePath;
$asset->filename = $filename;
$asset->newFolderId = $folderId;
$asset->setVolumeId($volume->id);
$asset->volumeId = $volume->id;
$asset->avoidFilenameConflicts = false;
$asset->setScenario(Asset::SCENARIO_CREATE);

Expand Down

0 comments on commit 0602d8d

Please sign in to comment.