Skip to content

Commit

Permalink
Merge pull request #6 from VersoBit/dev-v1.0.0a4
Browse files Browse the repository at this point in the history
Release v1.0.0a4
  • Loading branch information
tom-coward authored Jun 14, 2020
2 parents 6441f53 + fa8cb22 commit df8d95d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions XFRM/Service/ResourceUpdate/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ protected function deleteDiscussionThreadPost($update)
['message', 'LIKE', $updateUrl]
])->fetchOne();

// Delete resource update's post if was unapproved
if($post->message_state == 'moderated'){
// Delete resource update's post if unapproved
if($post AND $post->message_state == 'moderated'){
/** @var \XF\Service\Post\Deleter $postDeleter */
$postDeleter = $this->service('XF:Post\Deleter', $post);
$postDeleter->delete('soft', \XF::phrase('xfrm_resource_update').' deleted');
Expand Down
1 change: 1 addition & 0 deletions _output/phrases/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Binary file added _releases/VersoBit-ResourceThreads-1.0.0a4.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"legacy_addon_id": "",
"title": "[VersoBit] Resource Threads",
"description": "Automatically approves/deletes threads upon resource approval/deletion.",
"version_id": 1000013,
"version_string": "1.0.0a3",
"version_id": 1000014,
"version_string": "1.0.0a4",
"dev": "VersoBit",
"dev_url": "https://versobit.dev",
"faq_url": "",
Expand Down

0 comments on commit df8d95d

Please sign in to comment.