forked from GNUsocial/gnu-social
Fix blog plugin error to allow deleting a blog post
This commit is contained in:
parent
b5c5d8d393
commit
eef89c6712
@ -194,7 +194,7 @@ class BlogPlugin extends MicroAppPlugin
|
||||
{
|
||||
if ($notice->object_type == Blog_entry::TYPE) {
|
||||
$entry = Blog_entry::fromNotice($notice);
|
||||
if (exists($entry)) {
|
||||
if (!empty($entry)) {
|
||||
$entry->delete();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user