[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

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-13 10:15+0000\n"
"POT-Creation-Date: 2023-06-03 15:50-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,23 +17,23 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: twitter.php:216
#: twitter.php:220
msgid "Post to Twitter"
msgstr ""
#: twitter.php:263
#: twitter.php:267
msgid ""
"You submitted an empty PIN, please Sign In with Twitter again to get a new "
"one."
msgstr ""
#: twitter.php:330
#: twitter.php:334
msgid ""
"No consumer key pair for Twitter found. Please contact your site "
"administrator."
msgstr ""
#: twitter.php:343
#: twitter.php:347
msgid ""
"At this Friendica instance the Twitter addon was enabled but you have not "
"yet connected your account to your Twitter account. To do so click the "
@ -42,26 +42,26 @@ msgid ""
"be posted to Twitter."
msgstr ""
#: twitter.php:344
#: twitter.php:348
msgid "Log in with Twitter"
msgstr ""
#: twitter.php:346
#: twitter.php:350
msgid "Copy the PIN from Twitter here"
msgstr ""
#: twitter.php:354 twitter.php:399
#: twitter.php:358 twitter.php:403
msgid "An error occured: "
msgstr ""
#: twitter.php:368
#: twitter.php:372
#, php-format
msgid ""
"Currently connected to: <a href=\"https://twitter.com/%1$s\" target="
"\"_twitter\">%1$s</a>"
msgstr ""
#: twitter.php:374
#: twitter.php:378
msgid ""
"<strong>Note</strong>: Due to your privacy settings (<em>Hide your profile "
"details from unknown viewers?</em>) the link potentially included in public "
@ -69,46 +69,46 @@ msgid ""
"the visitor that the access to your profile has been restricted."
msgstr ""
#: twitter.php:381
#: twitter.php:385
msgid "Invalid Twitter info"
msgstr ""
#: twitter.php:382
#: twitter.php:386
msgid "Disconnect"
msgstr ""
#: twitter.php:387
#: twitter.php:391
msgid "Allow posting to Twitter"
msgstr ""
#: twitter.php:387
#: twitter.php:391
msgid ""
"If enabled all your <strong>public</strong> postings can be posted to the "
"associated Twitter account. You can choose to do so by default (here) or for "
"every posting separately in the posting options when writing the entry."
msgstr ""
#: twitter.php:388
#: twitter.php:392
msgid "Send public postings to Twitter by default"
msgstr ""
#: twitter.php:389
#: twitter.php:393
msgid "Use threads instead of truncating the content"
msgstr ""
#: twitter.php:390
#: twitter.php:394
msgid "Mirror all posts from twitter that are no replies"
msgstr ""
#: twitter.php:391
#: twitter.php:395
msgid "Import the remote timeline"
msgstr ""
#: twitter.php:392
#: twitter.php:396
msgid "Automatically create contacts"
msgstr ""
#: twitter.php:392
#: twitter.php:396
msgid ""
"This will automatically create a contact in Friendica as soon as you receive "
"a message from an existing contact via the Twitter network. If you do not "
@ -116,44 +116,44 @@ msgid ""
"from whom you would like to see posts here."
msgstr ""
#: twitter.php:393
#: twitter.php:397
msgid "Follow in fediverse"
msgstr ""
#: twitter.php:393
#: twitter.php:397
msgid ""
"Automatically subscribe to the contact in the fediverse, when a fediverse "
"account is mentioned in name or description and we are following the Twitter "
"contact."
msgstr ""
#: twitter.php:406
#: twitter.php:410
msgid "Twitter Import/Export/Mirror"
msgstr ""
#: twitter.php:558
#: twitter.php:567
msgid ""
"Please connect a Twitter account in your Social Network settings to import "
"Twitter posts."
msgstr ""
#: twitter.php:565
#: twitter.php:574
msgid "Twitter post not found."
msgstr ""
#: twitter.php:965
#: twitter.php:999
msgid "Save Settings"
msgstr ""
#: twitter.php:967
#: twitter.php:1001
msgid "Consumer key"
msgstr ""
#: twitter.php:968
#: twitter.php:1002
msgid "Consumer secret"
msgstr ""
#: twitter.php:1167
#: twitter.php:1200
#, php-format
msgid "%s on Twitter"
msgstr ""

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']]);