[various] Rename forum to group

- Drop support for forumdirectory
- Add support for groupdirectory
This commit is contained in:
Hypolite Petovan 2023-06-03 15:57:29 -04:00 committed by heluecht
parent aa0f74832a
commit 49d308c44b
51 changed files with 1636 additions and 85 deletions

View file

@ -695,7 +695,7 @@ function twitter_post_hook(array &$b)
}
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
// This is a check for group postings
$self = DBA::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
@ -952,7 +952,7 @@ function twitter_delete_item(array $item)
}
// Don't delete if the post doesn't belong to us.
// This is a check for forum postings
// This is a check for group postings
$self = DBA::selectFirst('contact', ['id'], ['uid' => $item['uid'], 'self' => true]);
if ($item['contact-id'] != $self['id']) {
DI::logger()->info('Don\'t delete if the post doesn\'t belong to the user', ['contact-id' => $item['contact-id'], 'self' => $self['id']]);