From fa375377627accbff58444b1ac3ced193159d0aa Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 23 May 2023 22:19:34 +0200 Subject: [PATCH 001/259] start 2023.09-dev --- CHANGELOG | 7 +++++++ VERSION | 2 +- database.sql | 2 +- src/App.php | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 25db7dfa3..94b2f067a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,10 @@ +Version 2023.09 (unreleased) + Friendica Core + + Friendica Addons + + Closed Issues + Version 2023.05 (2023-05-23) Friendica Core Updates to the translations HU, PL diff --git a/VERSION b/VERSION index e4a82cd8e..c32d7efee 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2023.05 +2023.09-dev diff --git a/database.sql b/database.sql index 6377222b0..4e674d63f 100644 --- a/database.sql +++ b/database.sql @@ -1,5 +1,5 @@ -- ------------------------------------------ --- Friendica 2023.05 (Giant Rhubarb) +-- Friendica 2023.09-dev (Giant Rhubarb) -- DB_UPDATE_VERSION 1518 -- ------------------------------------------ diff --git a/src/App.php b/src/App.php index e47054f55..249c9f66a 100644 --- a/src/App.php +++ b/src/App.php @@ -64,7 +64,7 @@ class App { const PLATFORM = 'Friendica'; const CODENAME = 'Giant Rhubarb'; - const VERSION = '2023.05'; + const VERSION = '2023.09-dev'; // Allow themes to control internal parameters // by changing App values in theme.php From ced6680c6a9d662bad7bd2c121b4f8985136e657 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 23 May 2023 22:09:55 -0400 Subject: [PATCH 002/259] Remove direct call to is_string() from templates - Address https://github.com/friendica/friendica/issues/12011#issuecomment-1523913027 --- view/templates/settings/addons/connector.tpl | 2 +- view/templates/settings/addons/panel.tpl | 2 +- view/theme/frio/templates/settings/addons/connector.tpl | 2 +- view/theme/frio/templates/settings/addons/panel.tpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/view/templates/settings/addons/connector.tpl b/view/templates/settings/addons/connector.tpl index c06c78195..adf615f9e 100644 --- a/view/templates/settings/addons/connector.tpl +++ b/view/templates/settings/addons/connector.tpl @@ -9,7 +9,7 @@
{{if $submit}} - \ No newline at end of file + diff --git a/view/templates/settings/head.tpl b/view/templates/settings/head.tpl index 6d58e54a6..ff85f2cb9 100644 --- a/view/templates/settings/head.tpl +++ b/view/templates/settings/head.tpl @@ -6,20 +6,20 @@ $(document).ready(function() { - $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() { + $('#contact_allow, #contact_deny, #circle_allow, #circle_deny').change(function() { var selstr; - $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { + $('#contact_allow option:selected, #contact_deny option:selected, #circle_allow option:selected, #circle_deny option:selected').each( function() { selstr = $(this).html(); $('#jot-perms-icon').removeClass('unlock').addClass('lock'); $('#jot-public').hide(); }); - if(selstr == null) { + if(selstr == null) { $('#jot-perms-icon').removeClass('lock').addClass('unlock'); $('#jot-public').show(); } }).trigger('change'); - + $('.settings-content-block').hide(); $('.settings-heading').click(function(){ $('.settings-content-block').hide(); diff --git a/view/templates/welcome.tpl b/view/templates/welcome.tpl index 0ac061b47..02da9b277 100644 --- a/view/templates/welcome.tpl +++ b/view/templates/welcome.tpl @@ -55,16 +55,16 @@ {{$finding_txt nofilter}} -

{{$groups nofilter}}

+

{{$circles nofilter}}

From 969becfc157cded332756f78018a8d9935c9c88a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 2 Jul 2023 22:57:39 -0400 Subject: [PATCH 111/259] Update main transation file after updating strings --- view/lang/C/messages.po | 463 +++++++++++++++++++++++++++++----------- 1 file changed, 339 insertions(+), 124 deletions(-) diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po index bb912a9ee..445ffcbd3 100644 --- a/view/lang/C/messages.po +++ b/view/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2023.09-dev\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-07-09 17:33+0000\n" +"POT-Creation-Date: 2023-07-09 18:36-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -294,7 +294,7 @@ msgstr "" #: mod/message.php:201 mod/message.php:357 mod/photos.php:1301 #: src/Content/Conversation.php:392 src/Content/Conversation.php:1506 #: src/Module/Item/Compose.php:206 src/Module/Post/Edit.php:145 -#: src/Module/Profile/UnkMail.php:154 src/Object/Post.php:568 +#: src/Module/Profile/UnkMail.php:154 src/Object/Post.php:574 msgid "Please wait" msgstr "" @@ -310,8 +310,12 @@ msgstr "" #: src/Module/Install.php:234 src/Module/Install.php:274 #: src/Module/Install.php:309 src/Module/Invite.php:178 #: src/Module/Item/Compose.php:189 src/Module/Moderation/Item/Source.php:79 -#: src/Module/Profile/Profile.php:276 src/Module/Profile/UnkMail.php:155 -#: src/Module/Settings/Profile/Index.php:230 src/Object/Post.php:1084 +#: src/Module/Moderation/Report/Create.php:168 +#: src/Module/Moderation/Report/Create.php:183 +#: src/Module/Moderation/Report/Create.php:211 +#: src/Module/Moderation/Report/Create.php:263 +#: src/Module/Profile/Profile.php:274 src/Module/Profile/UnkMail.php:155 +#: src/Module/Settings/Profile/Index.php:230 src/Object/Post.php:1090 #: view/theme/duepuntozero/config.php:85 view/theme/frio/config.php:171 #: view/theme/quattro/config.php:87 view/theme/vier/config.php:135 msgid "Submit" @@ -596,29 +600,29 @@ msgstr "" #: mod/photos.php:1139 mod/photos.php:1195 mod/photos.php:1275 #: src/Module/Contact.php:619 src/Module/Item/Compose.php:188 -#: src/Object/Post.php:1081 +#: src/Object/Post.php:1087 msgid "This is you" msgstr "" #: mod/photos.php:1141 mod/photos.php:1197 mod/photos.php:1277 -#: src/Object/Post.php:562 src/Object/Post.php:1083 +#: src/Object/Post.php:568 src/Object/Post.php:1089 msgid "Comment" msgstr "" #: mod/photos.php:1143 mod/photos.php:1199 mod/photos.php:1279 #: src/Content/Conversation.php:407 src/Module/Calendar/Event/Form.php:248 #: src/Module/Item/Compose.php:201 src/Module/Post/Edit.php:165 -#: src/Object/Post.php:1097 +#: src/Object/Post.php:1103 msgid "Preview" msgstr "" #: mod/photos.php:1144 src/Content/Conversation.php:360 -#: src/Module/Post/Edit.php:130 src/Object/Post.php:1085 +#: src/Module/Post/Edit.php:130 src/Object/Post.php:1091 msgid "Loading..." msgstr "" #: mod/photos.php:1236 src/Content/Conversation.php:1422 -#: src/Object/Post.php:262 +#: src/Object/Post.php:263 msgid "Select" msgstr "" @@ -630,19 +634,19 @@ msgstr "" msgid "Delete" msgstr "" -#: mod/photos.php:1298 src/Object/Post.php:400 +#: mod/photos.php:1298 src/Object/Post.php:405 msgid "Like" msgstr "" -#: mod/photos.php:1299 src/Object/Post.php:400 +#: mod/photos.php:1299 src/Object/Post.php:405 msgid "I like this (toggle)" msgstr "" -#: mod/photos.php:1300 src/Object/Post.php:401 +#: mod/photos.php:1300 src/Object/Post.php:406 msgid "Dislike" msgstr "" -#: mod/photos.php:1302 src/Object/Post.php:401 +#: mod/photos.php:1302 src/Object/Post.php:406 msgid "I don't like this (toggle)" msgstr "" @@ -1222,7 +1226,7 @@ msgid "Visible to everybody" msgstr "" #: src/Content/Conversation.php:330 src/Module/Item/Compose.php:200 -#: src/Object/Post.php:1096 +#: src/Object/Post.php:1102 msgid "Please enter a image/video/audio/webpage URL:" msgstr "" @@ -1267,52 +1271,52 @@ msgid "attach file" msgstr "" #: src/Content/Conversation.php:365 src/Module/Item/Compose.php:190 -#: src/Module/Post/Edit.php:171 src/Object/Post.php:1086 +#: src/Module/Post/Edit.php:171 src/Object/Post.php:1092 msgid "Bold" msgstr "" #: src/Content/Conversation.php:366 src/Module/Item/Compose.php:191 -#: src/Module/Post/Edit.php:172 src/Object/Post.php:1087 +#: src/Module/Post/Edit.php:172 src/Object/Post.php:1093 msgid "Italic" msgstr "" #: src/Content/Conversation.php:367 src/Module/Item/Compose.php:192 -#: src/Module/Post/Edit.php:173 src/Object/Post.php:1088 +#: src/Module/Post/Edit.php:173 src/Object/Post.php:1094 msgid "Underline" msgstr "" #: src/Content/Conversation.php:368 src/Module/Item/Compose.php:193 -#: src/Module/Post/Edit.php:174 src/Object/Post.php:1090 +#: src/Module/Post/Edit.php:174 src/Object/Post.php:1096 msgid "Quote" msgstr "" #: src/Content/Conversation.php:369 src/Module/Item/Compose.php:194 -#: src/Module/Post/Edit.php:175 src/Object/Post.php:1091 +#: src/Module/Post/Edit.php:175 src/Object/Post.php:1097 msgid "Add emojis" msgstr "" #: src/Content/Conversation.php:370 src/Module/Item/Compose.php:195 -#: src/Object/Post.php:1089 +#: src/Object/Post.php:1095 msgid "Content Warning" msgstr "" #: src/Content/Conversation.php:371 src/Module/Item/Compose.php:196 -#: src/Module/Post/Edit.php:176 src/Object/Post.php:1092 +#: src/Module/Post/Edit.php:176 src/Object/Post.php:1098 msgid "Code" msgstr "" #: src/Content/Conversation.php:372 src/Module/Item/Compose.php:197 -#: src/Object/Post.php:1093 +#: src/Object/Post.php:1099 msgid "Image" msgstr "" #: src/Content/Conversation.php:373 src/Module/Item/Compose.php:198 -#: src/Module/Post/Edit.php:177 src/Object/Post.php:1094 +#: src/Module/Post/Edit.php:177 src/Object/Post.php:1100 msgid "Link" msgstr "" #: src/Content/Conversation.php:374 src/Module/Item/Compose.php:199 -#: src/Module/Post/Edit.php:178 src/Object/Post.php:1095 +#: src/Module/Post/Edit.php:178 src/Object/Post.php:1101 msgid "Link or Media" msgstr "" @@ -1467,21 +1471,21 @@ msgstr "" msgid "Pinned item" msgstr "" -#: src/Content/Conversation.php:1466 src/Object/Post.php:513 -#: src/Object/Post.php:514 +#: src/Content/Conversation.php:1466 src/Object/Post.php:518 +#: src/Object/Post.php:519 #, php-format msgid "View %s's profile @ %s" msgstr "" -#: src/Content/Conversation.php:1479 src/Object/Post.php:501 +#: src/Content/Conversation.php:1479 src/Object/Post.php:506 msgid "Categories:" msgstr "" -#: src/Content/Conversation.php:1480 src/Object/Post.php:502 +#: src/Content/Conversation.php:1480 src/Object/Post.php:507 msgid "Filed under:" msgstr "" -#: src/Content/Conversation.php:1488 src/Object/Post.php:527 +#: src/Content/Conversation.php:1488 src/Object/Post.php:532 #, php-format msgid "%s from %s" msgstr "" @@ -1696,7 +1700,7 @@ msgstr "" msgid "Collapse" msgstr "" -#: src/Content/Item.php:434 src/Object/Post.php:482 +#: src/Content/Item.php:434 src/Object/Post.php:487 msgid "Languages" msgstr "" @@ -1754,7 +1758,7 @@ msgstr "" #: src/Content/Nav.php:228 src/Module/BaseProfile.php:49 #: src/Module/BaseSettings.php:100 src/Module/Contact.php:504 -#: src/Module/Contact/Profile.php:392 src/Module/Profile/Profile.php:270 +#: src/Module/Contact/Profile.php:392 src/Module/Profile/Profile.php:268 #: src/Module/Welcome.php:57 view/theme/frio/theme.php:230 msgid "Profile" msgstr "" @@ -2267,12 +2271,12 @@ msgid "More Trending Tags" msgstr "" #: src/Content/Widget/VCard.php:109 src/Model/Profile.php:378 -#: src/Module/Contact/Profile.php:381 src/Module/Profile/Profile.php:201 +#: src/Module/Contact/Profile.php:381 src/Module/Profile/Profile.php:199 msgid "XMPP:" msgstr "" #: src/Content/Widget/VCard.php:110 src/Model/Profile.php:379 -#: src/Module/Contact/Profile.php:383 src/Module/Profile/Profile.php:205 +#: src/Module/Contact/Profile.php:383 src/Module/Profile/Profile.php:203 msgid "Matrix:" msgstr "" @@ -2280,7 +2284,7 @@ msgstr "" #: src/Model/Event.php:109 src/Model/Event.php:473 src/Model/Event.php:965 #: src/Model/Profile.php:373 src/Module/Contact/Profile.php:379 #: src/Module/Directory.php:147 src/Module/Notifications/Introductions.php:187 -#: src/Module/Profile/Profile.php:223 +#: src/Module/Profile/Profile.php:221 msgid "Location:" msgstr "" @@ -2295,7 +2299,7 @@ msgstr "" msgid "Unfollow" msgstr "" -#: src/Core/ACL.php:166 src/Module/Profile/Profile.php:271 +#: src/Core/ACL.php:166 src/Module/Profile/Profile.php:269 msgid "Yourself" msgstr "" @@ -3051,7 +3055,7 @@ msgstr "" msgid "Disallowed profile URL." msgstr "" -#: src/Model/Contact.php:2994 src/Module/Friendica.php:83 +#: src/Model/Contact.php:2994 src/Module/Friendica.php:102 msgid "Blocked domain" msgstr "" @@ -3299,8 +3303,8 @@ msgstr "" msgid "Wall Photos" msgstr "" -#: src/Model/Profile.php:361 src/Module/Profile/Profile.php:285 -#: src/Module/Profile/Profile.php:287 +#: src/Model/Profile.php:361 src/Module/Profile/Profile.php:283 +#: src/Module/Profile/Profile.php:285 msgid "Edit profile" msgstr "" @@ -3309,7 +3313,7 @@ msgid "Change profile photo" msgstr "" #: src/Model/Profile.php:376 src/Module/Directory.php:152 -#: src/Module/Profile/Profile.php:211 +#: src/Module/Profile/Profile.php:209 msgid "Homepage:" msgstr "" @@ -3404,6 +3408,7 @@ msgid "Title/Description:" msgstr "" #: src/Model/Profile.php:1025 src/Module/Admin/Summary.php:221 +#: src/Module/Moderation/Report/Create.php:280 #: src/Module/Moderation/Summary.php:77 msgid "Summary" msgstr "" @@ -3858,6 +3863,8 @@ msgid "Manage Additional Features" msgstr "" #: src/Module/Admin/Federation.php:76 +#: src/Module/Moderation/Report/Create.php:191 +#: src/Module/Moderation/Report/Create.php:316 msgid "Other" msgstr "" @@ -4224,7 +4231,7 @@ msgid "Policies" msgstr "" #: src/Module/Admin/Site.php:406 src/Module/Calendar/Event/Form.php:252 -#: src/Module/Contact.php:547 src/Module/Profile/Profile.php:278 +#: src/Module/Contact.php:547 src/Module/Profile/Profile.php:276 msgid "Advanced" msgstr "" @@ -5707,7 +5714,7 @@ msgstr "" msgid "Share this event" msgstr "" -#: src/Module/Calendar/Event/Form.php:251 src/Module/Profile/Profile.php:277 +#: src/Module/Calendar/Event/Form.php:251 src/Module/Profile/Profile.php:275 msgid "Basic" msgstr "" @@ -5871,7 +5878,7 @@ msgid "Only show blocked contacts" msgstr "" #: src/Module/Contact.php:369 src/Module/Contact.php:441 -#: src/Object/Post.php:360 +#: src/Object/Post.php:365 msgid "Ignored" msgstr "" @@ -6082,7 +6089,7 @@ msgstr[1] "" #: src/Module/Contact/Follow.php:70 src/Module/Contact/Redir.php:62 #: src/Module/Contact/Redir.php:222 src/Module/Conversation/Community.php:194 #: src/Module/Debug/ItemBody.php:38 src/Module/Diaspora/Receive.php:57 -#: src/Module/Item/Display.php:98 src/Module/Item/Feed.php:59 +#: src/Module/Item/Display.php:96 src/Module/Item/Feed.php:59 #: src/Module/Item/Follow.php:41 src/Module/Item/Ignore.php:41 #: src/Module/Item/Pin.php:41 src/Module/Item/Pin.php:56 #: src/Module/Item/Star.php:42 src/Module/Update/Display.php:37 @@ -6128,7 +6135,7 @@ msgstr "" #: src/Module/Contact/Follow.php:171 src/Module/Contact/Profile.php:387 #: src/Module/Notifications/Introductions.php:191 -#: src/Module/Profile/Profile.php:236 +#: src/Module/Profile/Profile.php:234 msgid "Tags:" msgstr "" @@ -6299,6 +6306,7 @@ msgid "Block/Unblock contact" msgstr "" #: src/Module/Contact/Profile.php:348 +#: src/Module/Moderation/Report/Create.php:293 msgid "Ignore contact" msgstr "" @@ -6554,7 +6562,7 @@ msgstr "" msgid "Posts that mention or involve you" msgstr "" -#: src/Module/Conversation/Network.php:289 src/Object/Post.php:372 +#: src/Module/Conversation/Network.php:289 src/Object/Post.php:377 msgid "Starred" msgstr "" @@ -6907,55 +6915,55 @@ msgstr "" msgid "Suggest a friend for %s" msgstr "" -#: src/Module/Friendica.php:64 +#: src/Module/Friendica.php:82 msgid "Installed addons/apps:" msgstr "" -#: src/Module/Friendica.php:69 +#: src/Module/Friendica.php:87 msgid "No installed addons/apps" msgstr "" -#: src/Module/Friendica.php:74 +#: src/Module/Friendica.php:92 #, php-format msgid "Read about the Terms of Service of this node." msgstr "" -#: src/Module/Friendica.php:81 +#: src/Module/Friendica.php:100 msgid "On this server the following remote servers are blocked." msgstr "" -#: src/Module/Friendica.php:84 +#: src/Module/Friendica.php:103 #: src/Module/Moderation/Blocklist/Server/Index.php:87 #: src/Module/Moderation/Blocklist/Server/Index.php:111 msgid "Reason for the block" msgstr "" -#: src/Module/Friendica.php:86 +#: src/Module/Friendica.php:105 msgid "Download this list in CSV format" msgstr "" -#: src/Module/Friendica.php:100 +#: src/Module/Friendica.php:119 #, php-format msgid "" "This is Friendica, version %s that is running at the web location %s. The " "database version is %s, the post update version is %s." msgstr "" -#: src/Module/Friendica.php:105 +#: src/Module/Friendica.php:124 msgid "" "Please visit Friendi.ca to learn more " "about the Friendica project." msgstr "" -#: src/Module/Friendica.php:106 +#: src/Module/Friendica.php:125 msgid "Bug reports and issues: please visit" msgstr "" -#: src/Module/Friendica.php:106 +#: src/Module/Friendica.php:125 msgid "the bugtracker at github" msgstr "" -#: src/Module/Friendica.php:107 +#: src/Module/Friendica.php:126 msgid "" "Suggestions, praise, etc. - please email \"info\" at \"friendi - dot - ca" msgstr "" @@ -7270,7 +7278,7 @@ msgid "" "Theme Customization settings." msgstr "" -#: src/Module/Item/Display.php:138 src/Module/Update/Display.php:55 +#: src/Module/Item/Display.php:136 src/Module/Update/Display.php:55 msgid "The requested item doesn't exist or has been deleted." msgstr "" @@ -7814,6 +7822,209 @@ msgstr "" msgid "Item Guid" msgstr "" +#: src/Module/Moderation/Report/Create.php:95 +msgid "Contact not found or their server is already blocked on this node." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:136 +msgid "Please login to access this page." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:165 +#: src/Module/Moderation/Report/Create.php:180 +#: src/Module/Moderation/Report/Create.php:208 +#: src/Module/Moderation/Report/Create.php:260 +#: src/Module/Moderation/Report/Create.php:279 +msgid "Create Moderation Report" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:166 +msgid "Pick Contact" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:167 +msgid "" +"Please enter below the contact address or profile URL you would like to " +"create a moderation report about." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:171 +msgid "Contact address/URL" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:181 +msgid "Pick Category" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:182 +msgid "Please pick below the category of your report." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:186 +#: src/Module/Moderation/Report/Create.php:311 +msgid "Spam" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:186 +msgid "" +"This contact is publishing many repeated/overly long posts/replies or " +"advertising their product/websites in otherwise irrelevant conversations." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:187 +#: src/Module/Moderation/Report/Create.php:312 +msgid "Illegal Content" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:187 +msgid "" +"This contact is publishing content that is considered illegal in this node's " +"hosting juridiction." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:188 +#: src/Module/Moderation/Report/Create.php:313 +msgid "Community Safety" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:188 +msgid "" +"This contact aggravated you or other people, by being provocative or " +"insensitive, intentionally or not. This includes disclosing people's private " +"information (doxxing), posting threats or offensive pictures in posts or " +"replies." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:189 +#: src/Module/Moderation/Report/Create.php:314 +msgid "Unwanted Content/Behavior" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:189 +msgid "" +"This contact has repeatedly published content irrelevant to the node's theme " +"or is openly criticizing the node's administration/moderation without " +"directly engaging with the relevant people for example or repeatedly " +"nitpicking on a sensitive topic." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:190 +#: src/Module/Moderation/Report/Create.php:315 +msgid "Rules Violation" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:190 +msgid "" +"This contact violated one or more rules of this node. You will be able to " +"pick which one(s) in the next step." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:191 +msgid "" +"Please elaborate below why you submitted this report. The more details you " +"provide, the better your report can be handled." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:193 +msgid "Additional Information" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:193 +msgid "" +"Please provide any additional information relevant to this particular " +"report. You will be able to attach posts by this contact in the next step, " +"but any context is welcome." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:209 +msgid "Pick Rules" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:210 +msgid "Please pick below the node rules you believe this contact violated." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:261 +msgid "Pick Posts" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:262 +msgid "Please optionally pick posts to attach to your report." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:281 +msgid "Submit Report" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:282 +msgid "Further Action" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:283 +msgid "" +"You can also perform one of the following action on the contact you reported:" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:291 +msgid "Nothing" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:292 +msgid "Collapse contact" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:292 +msgid "" +"Their posts and replies will keep appearing in your Network page but their " +"content will be collapsed by default." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:293 +msgid "" +"Their posts won't appear in your Network page anymore, but their replies can " +"appear in forum threads. They still can follow you." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:294 +msgid "Block contact" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:294 +msgid "" +"Their posts won't appear in your Network page anymore, but their replies can " +"appear in forum threads, with their content collapsed by default. They " +"cannot follow you but still can have access to your public posts by other " +"means." +msgstr "" + +#: src/Module/Moderation/Report/Create.php:297 +msgid "Forward report" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:297 +msgid "Would you ike to forward this report to the remote server?" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:330 +msgid "1. Pick a contact" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:331 +msgid "2. Pick a category" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:332 +msgid "2a. Pick rules" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:333 +msgid "2b. Add comment" +msgstr "" + +#: src/Module/Moderation/Report/Create.php:334 +msgid "3. Pick posts" +msgstr "" + #: src/Module/Moderation/Summary.php:53 msgid "Normal Account" msgstr "" @@ -8364,20 +8575,20 @@ msgid "No contacts." msgstr "" #: src/Module/Profile/Conversations.php:106 -#: src/Module/Profile/Conversations.php:109 src/Module/Profile/Profile.php:353 -#: src/Module/Profile/Profile.php:356 src/Protocol/Feed.php:1090 +#: src/Module/Profile/Conversations.php:109 src/Module/Profile/Profile.php:351 +#: src/Module/Profile/Profile.php:354 src/Protocol/Feed.php:1090 #: src/Protocol/OStatus.php:1009 #, php-format msgid "%s's timeline" msgstr "" -#: src/Module/Profile/Conversations.php:107 src/Module/Profile/Profile.php:354 +#: src/Module/Profile/Conversations.php:107 src/Module/Profile/Profile.php:352 #: src/Protocol/Feed.php:1094 src/Protocol/OStatus.php:1014 #, php-format msgid "%s's posts" msgstr "" -#: src/Module/Profile/Conversations.php:108 src/Module/Profile/Profile.php:355 +#: src/Module/Profile/Conversations.php:108 src/Module/Profile/Profile.php:353 #: src/Protocol/Feed.php:1097 src/Protocol/OStatus.php:1018 #, php-format msgid "%s's comments" @@ -8412,43 +8623,43 @@ msgstr "" msgid "View Album" msgstr "" -#: src/Module/Profile/Profile.php:114 src/Module/Profile/Restricted.php:50 +#: src/Module/Profile/Profile.php:112 src/Module/Profile/Restricted.php:50 msgid "Profile not found." msgstr "" -#: src/Module/Profile/Profile.php:160 +#: src/Module/Profile/Profile.php:158 #, php-format msgid "" "You're currently viewing your profile as %s Cancel" msgstr "" -#: src/Module/Profile/Profile.php:169 src/Module/Settings/Account.php:576 +#: src/Module/Profile/Profile.php:167 src/Module/Settings/Account.php:576 msgid "Full Name:" msgstr "" -#: src/Module/Profile/Profile.php:174 +#: src/Module/Profile/Profile.php:172 msgid "Member since:" msgstr "" -#: src/Module/Profile/Profile.php:180 +#: src/Module/Profile/Profile.php:178 msgid "j F, Y" msgstr "" -#: src/Module/Profile/Profile.php:181 +#: src/Module/Profile/Profile.php:179 msgid "j F" msgstr "" -#: src/Module/Profile/Profile.php:189 src/Util/Temporal.php:168 +#: src/Module/Profile/Profile.php:187 src/Util/Temporal.php:168 msgid "Birthday:" msgstr "" -#: src/Module/Profile/Profile.php:192 src/Module/Settings/Profile/Index.php:253 +#: src/Module/Profile/Profile.php:190 src/Module/Settings/Profile/Index.php:253 #: src/Util/Temporal.php:170 msgid "Age: " msgstr "" -#: src/Module/Profile/Profile.php:192 src/Module/Settings/Profile/Index.php:253 +#: src/Module/Profile/Profile.php:190 src/Module/Settings/Profile/Index.php:253 #: src/Util/Temporal.php:170 #, php-format msgid "%d year old" @@ -8456,19 +8667,19 @@ msgid_plural "%d years old" msgstr[0] "" msgstr[1] "" -#: src/Module/Profile/Profile.php:197 src/Module/Settings/Profile/Index.php:246 +#: src/Module/Profile/Profile.php:195 src/Module/Settings/Profile/Index.php:246 msgid "Description:" msgstr "" -#: src/Module/Profile/Profile.php:263 +#: src/Module/Profile/Profile.php:261 msgid "Groups:" msgstr "" -#: src/Module/Profile/Profile.php:275 +#: src/Module/Profile/Profile.php:273 msgid "View profile as:" msgstr "" -#: src/Module/Profile/Profile.php:292 +#: src/Module/Profile/Profile.php:290 msgid "View as" msgstr "" @@ -11297,222 +11508,226 @@ msgstr "" msgid "Remove locally" msgstr "" -#: src/Object/Post.php:270 +#: src/Object/Post.php:271 #, php-format msgid "Block %s" msgstr "" -#: src/Object/Post.php:275 +#: src/Object/Post.php:276 #, php-format msgid "Ignore %s" msgstr "" -#: src/Object/Post.php:280 +#: src/Object/Post.php:281 #, php-format msgid "Collapse %s" msgstr "" #: src/Object/Post.php:285 +msgid "Report post" +msgstr "" + +#: src/Object/Post.php:290 msgid "Save to folder" msgstr "" -#: src/Object/Post.php:325 +#: src/Object/Post.php:330 msgid "I will attend" msgstr "" -#: src/Object/Post.php:325 +#: src/Object/Post.php:330 msgid "I will not attend" msgstr "" -#: src/Object/Post.php:325 +#: src/Object/Post.php:330 msgid "I might attend" msgstr "" -#: src/Object/Post.php:355 +#: src/Object/Post.php:360 msgid "Ignore thread" msgstr "" -#: src/Object/Post.php:356 +#: src/Object/Post.php:361 msgid "Unignore thread" msgstr "" -#: src/Object/Post.php:357 +#: src/Object/Post.php:362 msgid "Toggle ignore status" msgstr "" -#: src/Object/Post.php:367 +#: src/Object/Post.php:372 msgid "Add star" msgstr "" -#: src/Object/Post.php:368 +#: src/Object/Post.php:373 msgid "Remove star" msgstr "" -#: src/Object/Post.php:369 +#: src/Object/Post.php:374 msgid "Toggle star status" msgstr "" -#: src/Object/Post.php:380 +#: src/Object/Post.php:385 msgid "Pin" msgstr "" -#: src/Object/Post.php:381 +#: src/Object/Post.php:386 msgid "Unpin" msgstr "" -#: src/Object/Post.php:382 +#: src/Object/Post.php:387 msgid "Toggle pin status" msgstr "" -#: src/Object/Post.php:385 +#: src/Object/Post.php:390 msgid "Pinned" msgstr "" -#: src/Object/Post.php:390 +#: src/Object/Post.php:395 msgid "Add tag" msgstr "" -#: src/Object/Post.php:403 +#: src/Object/Post.php:408 msgid "Quote share this" msgstr "" -#: src/Object/Post.php:403 +#: src/Object/Post.php:408 msgid "Quote Share" msgstr "" -#: src/Object/Post.php:406 +#: src/Object/Post.php:411 msgid "Reshare this" msgstr "" -#: src/Object/Post.php:406 +#: src/Object/Post.php:411 msgid "Reshare" msgstr "" -#: src/Object/Post.php:407 +#: src/Object/Post.php:412 msgid "Cancel your Reshare" msgstr "" -#: src/Object/Post.php:407 +#: src/Object/Post.php:412 msgid "Unshare" msgstr "" -#: src/Object/Post.php:458 +#: src/Object/Post.php:463 #, php-format msgid "%s (Received %s)" msgstr "" -#: src/Object/Post.php:464 +#: src/Object/Post.php:469 msgid "Comment this item on your system" msgstr "" -#: src/Object/Post.php:464 +#: src/Object/Post.php:469 msgid "Remote comment" msgstr "" -#: src/Object/Post.php:486 +#: src/Object/Post.php:491 msgid "Share via ..." msgstr "" -#: src/Object/Post.php:486 +#: src/Object/Post.php:491 msgid "Share via external services" msgstr "" -#: src/Object/Post.php:515 +#: src/Object/Post.php:520 msgid "to" msgstr "" -#: src/Object/Post.php:516 +#: src/Object/Post.php:521 msgid "via" msgstr "" -#: src/Object/Post.php:517 +#: src/Object/Post.php:522 msgid "Wall-to-Wall" msgstr "" -#: src/Object/Post.php:518 +#: src/Object/Post.php:523 msgid "via Wall-To-Wall:" msgstr "" -#: src/Object/Post.php:563 +#: src/Object/Post.php:569 #, php-format msgid "Reply to %s" msgstr "" -#: src/Object/Post.php:566 +#: src/Object/Post.php:572 msgid "More" msgstr "" -#: src/Object/Post.php:584 +#: src/Object/Post.php:590 msgid "Notifier task is pending" msgstr "" -#: src/Object/Post.php:585 +#: src/Object/Post.php:591 msgid "Delivery to remote servers is pending" msgstr "" -#: src/Object/Post.php:586 +#: src/Object/Post.php:592 msgid "Delivery to remote servers is underway" msgstr "" -#: src/Object/Post.php:587 +#: src/Object/Post.php:593 msgid "Delivery to remote servers is mostly done" msgstr "" -#: src/Object/Post.php:588 +#: src/Object/Post.php:594 msgid "Delivery to remote servers is done" msgstr "" -#: src/Object/Post.php:608 +#: src/Object/Post.php:614 #, php-format msgid "%d comment" msgid_plural "%d comments" msgstr[0] "" msgstr[1] "" -#: src/Object/Post.php:609 +#: src/Object/Post.php:615 msgid "Show more" msgstr "" -#: src/Object/Post.php:610 +#: src/Object/Post.php:616 msgid "Show fewer" msgstr "" -#: src/Object/Post.php:646 +#: src/Object/Post.php:652 #, php-format msgid "Reshared by: %s" msgstr "" -#: src/Object/Post.php:651 +#: src/Object/Post.php:657 #, php-format msgid "Viewed by: %s" msgstr "" -#: src/Object/Post.php:656 +#: src/Object/Post.php:662 #, php-format msgid "Liked by: %s" msgstr "" -#: src/Object/Post.php:661 +#: src/Object/Post.php:667 #, php-format msgid "Disliked by: %s" msgstr "" -#: src/Object/Post.php:666 +#: src/Object/Post.php:672 #, php-format msgid "Attended by: %s" msgstr "" -#: src/Object/Post.php:671 +#: src/Object/Post.php:677 #, php-format msgid "Maybe attended by: %s" msgstr "" -#: src/Object/Post.php:676 +#: src/Object/Post.php:682 #, php-format msgid "Not attended by: %s" msgstr "" -#: src/Object/Post.php:681 +#: src/Object/Post.php:687 #, php-format msgid "Reacted with %s by: %s" msgstr "" From 37131a6785c70882c7da83d63de13167ff8e5290 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 9 Jul 2023 20:56:51 -0400 Subject: [PATCH 112/259] Normalize item action label key name - Remove unused $item.return reference in asynchronous item action URLs --- src/Object/Post.php | 11 ++++------- view/templates/search_item.tpl | 14 +++++++------- view/templates/wall_thread.tpl | 2 +- view/theme/frio/templates/search_item.tpl | 2 +- view/theme/frio/templates/wall_thread.tpl | 11 ++++++----- view/theme/quattro/templates/search_item.tpl | 2 +- view/theme/quattro/templates/wall_item_tag.tpl | 12 ++++++------ view/theme/quattro/templates/wall_thread.tpl | 2 +- view/theme/smoothly/templates/search_item.tpl | 16 ++++++++-------- view/theme/smoothly/templates/wall_thread.tpl | 2 +- view/theme/vier/templates/search_item.tpl | 2 +- view/theme/vier/templates/wall_item_tag.tpl | 12 ++++++------ 12 files changed, 43 insertions(+), 45 deletions(-) diff --git a/src/Object/Post.php b/src/Object/Post.php index 28db23894..915dead94 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -248,9 +248,6 @@ class Post $pinned = DI::l10n()->t('Pinned item'); } - // Showing the one or the other text, depending upon if we can only hide it or really delete it. - $delete = $origin ? DI::l10n()->t('Delete globally') : DI::l10n()->t('Remove locally'); - $drop = false; $block = false; $ignore = false; @@ -260,24 +257,24 @@ class Post 'dropping' => $dropping, 'pagedrop' => $item['pagedrop'], 'select' => DI::l10n()->t('Select'), - 'delete' => $delete, + 'label' => $origin ? DI::l10n()->t('Delete globally') : DI::l10n()->t('Remove locally'), ]; } if (!$item['self'] && DI::userSession()->getLocalUserId()) { $block = [ 'blocking' => true, - 'block' => DI::l10n()->t('Block %s', $item['author-name']), + 'label' => DI::l10n()->t('Block %s', $item['author-name']), 'author_id' => $item['author-id'], ]; $ignore = [ 'ignoring' => true, - 'ignore' => DI::l10n()->t('Ignore %s', $item['author-name']), + 'label' => DI::l10n()->t('Ignore %s', $item['author-name']), 'author_id' => $item['author-id'], ]; $collapse = [ 'collapsing' => true, - 'collapse' => DI::l10n()->t('Collapse %s', $item['author-name']), + 'label' => DI::l10n()->t('Collapse %s', $item['author-name']), 'author_id' => $item['author-id'], ]; } diff --git a/view/templates/search_item.tpl b/view/templates/search_item.tpl index fc322be95..4320ec6cf 100644 --- a/view/templates/search_item.tpl +++ b/view/templates/search_item.tpl @@ -7,8 +7,8 @@
-
{{$item.name}} @@ -19,17 +19,17 @@
-
+
{{if $item.lock}}
{{$item.lock}}
- {{else}}
{{/if}} + {{else}}
{{/if}}
{{$item.location_html nofilter}}
{{$item.name}} -
{{$item.pinned}}
-
+
{{$item.pinned}}
+
{{$item.title}}
@@ -46,7 +46,7 @@
- {{if $item.drop && $item.drop.dropping}}{{/if}} + {{if $item.drop && $item.drop.dropping}}{{/if}}
{{if $item.drop && $item.drop.pagedrop}}{{/if}}
diff --git a/view/templates/wall_thread.tpl b/view/templates/wall_thread.tpl index 5e9dd96d6..90218d911 100644 --- a/view/templates/wall_thread.tpl +++ b/view/templates/wall_thread.tpl @@ -166,7 +166,7 @@ {{/if}} {{if $item.drop && $item.drop.dropping}} - {{$item.drop.delete}} + {{$item.drop.label}} {{/if}} {{if $item.edpost}} {{$item.edpost.1}} diff --git a/view/theme/frio/templates/search_item.tpl b/view/theme/frio/templates/search_item.tpl index 4a3e006aa..ef02e1064 100644 --- a/view/theme/frio/templates/search_item.tpl +++ b/view/theme/frio/templates/search_item.tpl @@ -245,7 +245,7 @@ {{if $item.drop && $item.drop.dropping}}
  • - {{$item.drop.delete}} + {{$item.drop.label}}
  • {{/if}} diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 3e9d19e02..29e0c6463 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -390,23 +390,24 @@ as the value of $top_child_total (this is done at the end of this file) {{if $item.drop && $item.drop.dropping}}
  • - {{$item.drop.delete}} + {{$item.drop.label}}
  • {{/if}} {{if $item.block}}
  • - {{$item.block.block}} + {{$item.block.label}}
  • {{/if}} {{if $item.ignore_author}}
  • - {{$item.ignore_author.ignore}} + {{$item.ignore_author.label}}
  • {{/if}} {{if $item.collapse}}
  • - {{$item.collapse.collapse}} + {{$item.collapse.label}} +
  • {{/if}} @@ -559,7 +560,7 @@ as the value of $top_child_total (this is done at the end of this file) {{if $item.drop && $item.drop.dropping}}
  • - {{$item.drop.delete}} + {{$item.drop.label}}
  • {{/if}} diff --git a/view/theme/quattro/templates/search_item.tpl b/view/theme/quattro/templates/search_item.tpl index b5c6af7e7..dc89c3e50 100644 --- a/view/theme/quattro/templates/search_item.tpl +++ b/view/theme/quattro/templates/search_item.tpl @@ -75,7 +75,7 @@ {{/if}} {{if $item.drop && $item.drop.dropping}} - {{$item.drop.delete}} + {{$item.drop.label}} {{/if}} {{if $item.edpost}} diff --git a/view/theme/quattro/templates/wall_item_tag.tpl b/view/theme/quattro/templates/wall_item_tag.tpl index 3aa9d3ad4..023bde970 100644 --- a/view/theme/quattro/templates/wall_item_tag.tpl +++ b/view/theme/quattro/templates/wall_item_tag.tpl @@ -2,12 +2,12 @@ {{else}} {{if $item.comment_firstcollapsed}}
    - {{$item.num_comments}} - {{$item.hide_text}} - {{if $item.thread_level==3}} - + {{if $item.thread_level==3}} - expand / @@ -32,7 +32,7 @@ - +
    {{$item.location_html nofilter}}
    @@ -44,7 +44,7 @@ {{/if}} {{if $item.drop && $item.drop.dropping}} - {{$item.drop.delete}} + {{$item.drop.label}} {{/if}} diff --git a/view/theme/quattro/templates/wall_thread.tpl b/view/theme/quattro/templates/wall_thread.tpl index 1683f10d0..197ce776f 100644 --- a/view/theme/quattro/templates/wall_thread.tpl +++ b/view/theme/quattro/templates/wall_thread.tpl @@ -149,7 +149,7 @@ {{/if}} {{if $item.drop && $item.drop.dropping}} - {{$item.drop.delete}} + {{$item.drop.label}} {{/if}} {{if $item.edpost}} diff --git a/view/theme/smoothly/templates/search_item.tpl b/view/theme/smoothly/templates/search_item.tpl index 94d713267..89d51701a 100644 --- a/view/theme/smoothly/templates/search_item.tpl +++ b/view/theme/smoothly/templates/search_item.tpl @@ -5,8 +5,8 @@
    -
    {{$item.name}} @@ -17,16 +17,16 @@
    -
    +
    {{if $item.location_html}}{{$item.location_html nofilter}} {{/if}}
    {{if $item.lock}}
    {{$item.lock}}
    - {{else}}
    {{/if}} + {{else}}
    {{/if}}
    - {{if $item.drop && $item.drop.dropping}}{{/if}} + {{if $item.drop && $item.drop.dropping}}{{/if}}
    {{if $item.drop && $item.drop.pagedrop}}{{/if}}
    @@ -39,9 +39,9 @@
    {{$item.name}}
    {{$item.ago}}
    - -
    - + +
    +
    diff --git a/view/theme/smoothly/templates/wall_thread.tpl b/view/theme/smoothly/templates/wall_thread.tpl index 53602cc8f..594799f6b 100644 --- a/view/theme/smoothly/templates/wall_thread.tpl +++ b/view/theme/smoothly/templates/wall_thread.tpl @@ -136,7 +136,7 @@
    {{if $item.drop && $item.drop.dropping}} - + {{/if}}
    diff --git a/view/theme/vier/templates/search_item.tpl b/view/theme/vier/templates/search_item.tpl index e556335a5..51de297d3 100644 --- a/view/theme/vier/templates/search_item.tpl +++ b/view/theme/vier/templates/search_item.tpl @@ -80,7 +80,7 @@ {{/if}} {{if $item.drop && $item.drop.dropping}} - {{$item.drop.delete}} + {{$item.drop.label}} {{/if}} {{if $item.edpost}} diff --git a/view/theme/vier/templates/wall_item_tag.tpl b/view/theme/vier/templates/wall_item_tag.tpl index c12cb7085..92cfaf914 100644 --- a/view/theme/vier/templates/wall_item_tag.tpl +++ b/view/theme/vier/templates/wall_item_tag.tpl @@ -3,12 +3,12 @@ {{else}} {{if $item.comment_firstcollapsed}}
    - {{$item.num_comments}} - {{$item.hide_text}} - {{if $item.thread_level==3}} - + {{if $item.thread_level==3}} - expand / @@ -32,7 +32,7 @@ - +
    {{$item.location_html nofilter}}
    @@ -44,7 +44,7 @@ {{/if}} {{if $item.drop && $item.drop.dropping}} - {{$item.drop.delete}} + {{$item.drop.label}} {{/if}} From 3748adf2fda4f547da278400c44d4a9771023e94 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 9 Jul 2023 22:44:40 -0400 Subject: [PATCH 113/259] Fix exception module not setting the HTTP response code - Page->run now returns an updated response for use with Page->exit - Remove now duplicated header setting in Page->run - Remove now obsolete (and ineffective) HTTP return code setting from Module\Special\HTTPException->content - Add HTTP response code and reason setting in BaseModule->run --- src/App.php | 8 +++++--- src/App/Page.php | 19 +++++-------------- src/BaseModule.php | 1 + src/Module/Special/HTTPException.php | 2 -- 4 files changed, 11 insertions(+), 19 deletions(-) diff --git a/src/App.php b/src/App.php index a48e21571..db3e644c2 100644 --- a/src/App.php +++ b/src/App.php @@ -706,11 +706,13 @@ class App $timestamp = microtime(true); $response = $module->run($httpException, $input); $this->profiler->set(microtime(true) - $timestamp, 'content'); + + // Wrapping HTML responses in the theme template if ($response->getHeaderLine(ICanCreateResponses::X_HEADER) === ICanCreateResponses::TYPE_HTML) { - $page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig, $nav, $this->session->getLocalUserId()); - } else { - $page->exit($response); + $response = $page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig, $nav, $this->session->getLocalUserId()); } + + $page->exit($response); } catch (HTTPException $e) { $httpException->rawContent($e); } diff --git a/src/App/Page.php b/src/App/Page.php index 6252d9a88..96bb59425 100644 --- a/src/App/Page.php +++ b/src/App/Page.php @@ -39,6 +39,7 @@ use Friendica\Network\HTTPException; use Friendica\Util\Network; use Friendica\Util\Profiler; use Friendica\Util\Strings; +use GuzzleHttp\Psr7\Utils; use Psr\Http\Message\ResponseInterface; /** @@ -499,20 +500,6 @@ class Page implements ArrayAccess $this->page['nav'] = $nav->getHtml(); } - foreach ($response->getHeaders() as $key => $header) { - if (is_array($header)) { - $header_str = implode(',', $header); - } else { - $header_str = $header; - } - - if (empty($key)) { - header($header_str); - } else { - header("$key: $header_str"); - } - } - // Build the page - now that we have all the components if (isset($_GET["mode"]) && (($_GET["mode"] == "raw") || ($_GET["mode"] == "minimal"))) { $doc = new DOMDocument(); @@ -583,6 +570,10 @@ class Page implements ArrayAccess // Used as is in view/php/default.php $lang = $l10n->getCurrentLang(); + ob_start(); require_once $template; + $body = ob_get_clean(); + + return $response->withBody(Utils::streamFor($body)); } } diff --git a/src/BaseModule.php b/src/BaseModule.php index b43e98477..619095dfb 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -251,6 +251,7 @@ abstract class BaseModule implements ICanHandleRequests throw $e; } + $this->response->setStatus($e->getCode(), $e->getMessage()); $this->response->addContent($httpException->content($e)); } finally { $this->profiler->set(microtime(true) - $timestamp, 'content'); diff --git a/src/Module/Special/HTTPException.php b/src/Module/Special/HTTPException.php index 8a8cc30eb..2cac142fc 100644 --- a/src/Module/Special/HTTPException.php +++ b/src/Module/Special/HTTPException.php @@ -126,8 +126,6 @@ class HTTPException */ public function content(\Friendica\Network\HTTPException $e): string { - header($this->server['SERVER_PROTOCOL'] ?? 'HTTP/1.0' . ' ' . $e->getCode() . ' ' . $e->getDescription()); - if ($e->getCode() >= 400) { $this->logger->debug('Exit with error', [ From c822d5fa945e9b323f28c776c51fa4635ce5f04c Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 10 Jul 2023 20:50:16 +0000 Subject: [PATCH 114/259] Fix "Cannot drop index 'last-editor-uid': needed in a foreign key constraint" --- database.sql | 11 ++++++++--- doc/database/db_report.md | 1 + static/dbstructure.config.php | 1 + static/dbview.config.php | 10 +++++++--- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/database.sql b/database.sql index 5b6f1695c..13158d1ea 100644 --- a/database.sql +++ b/database.sql @@ -1712,6 +1712,7 @@ CREATE TABLE IF NOT EXISTS `report` ( INDEX `cid` (`cid`), INDEX `reporter-id` (`reporter-id`), INDEX `gsid` (`gsid`), + INDEX `last-editor-uid` (`last-editor-uid`), INDEX `assigned-uid` (`assigned-uid`), INDEX `status-resolution` (`status`,`resolution`), INDEX `created` (`created`), @@ -2635,13 +2636,15 @@ CREATE VIEW `network-item-view` AS SELECT `ownercontact`.`contact-type` AS `contact-type` FROM `post-user` INNER JOIN `post-thread-user` ON `post-thread-user`.`uri-id` = `post-user`.`parent-uri-id` AND `post-thread-user`.`uid` = `post-user`.`uid` - INNER JOIN `contact` ON `contact`.`id` = `post-thread-user`.`contact-id` + STRAIGHT_JOIN `contact` ON `contact`.`id` = `post-thread-user`.`contact-id` + STRAIGHT_JOIN `contact` AS `authorcontact` ON `authorcontact`.`id` = `post-thread-user`.`author-id` + STRAIGHT_JOIN `contact` AS `ownercontact` ON `ownercontact`.`id` = `post-thread-user`.`owner-id` LEFT JOIN `user-contact` AS `author` ON `author`.`uid` = `post-thread-user`.`uid` AND `author`.`cid` = `post-thread-user`.`author-id` LEFT JOIN `user-contact` AS `owner` ON `owner`.`uid` = `post-thread-user`.`uid` AND `owner`.`cid` = `post-thread-user`.`owner-id` - INNER JOIN `contact` AS `ownercontact` ON `ownercontact`.`id` = `post-thread-user`.`owner-id` WHERE `post-user`.`visible` AND NOT `post-user`.`deleted` AND (NOT `contact`.`readonly` AND NOT `contact`.`blocked` AND NOT `contact`.`pending`) AND (`post-user`.`hidden` IS NULL OR NOT `post-user`.`hidden`) + AND NOT `authorcontact`.`blocked` AND NOT `ownercontact`.`blocked` AND (`author`.`blocked` IS NULL OR NOT `author`.`blocked`) AND (`owner`.`blocked` IS NULL OR NOT `owner`.`blocked`); @@ -2664,12 +2667,14 @@ CREATE VIEW `network-thread-view` AS SELECT FROM `post-thread-user` INNER JOIN `post-user` ON `post-user`.`id` = `post-thread-user`.`post-user-id` STRAIGHT_JOIN `contact` ON `contact`.`id` = `post-thread-user`.`contact-id` + STRAIGHT_JOIN `contact` AS `authorcontact` ON `authorcontact`.`id` = `post-thread-user`.`author-id` + STRAIGHT_JOIN `contact` AS `ownercontact` ON `ownercontact`.`id` = `post-thread-user`.`owner-id` LEFT JOIN `user-contact` AS `author` ON `author`.`uid` = `post-thread-user`.`uid` AND `author`.`cid` = `post-thread-user`.`author-id` LEFT JOIN `user-contact` AS `owner` ON `owner`.`uid` = `post-thread-user`.`uid` AND `owner`.`cid` = `post-thread-user`.`owner-id` - LEFT JOIN `contact` AS `ownercontact` ON `ownercontact`.`id` = `post-thread-user`.`owner-id` WHERE `post-user`.`visible` AND NOT `post-user`.`deleted` AND (NOT `contact`.`readonly` AND NOT `contact`.`blocked` AND NOT `contact`.`pending`) AND (`post-thread-user`.`hidden` IS NULL OR NOT `post-thread-user`.`hidden`) + AND NOT `authorcontact`.`blocked` AND NOT `ownercontact`.`blocked` AND (`author`.`blocked` IS NULL OR NOT `author`.`blocked`) AND (`owner`.`blocked` IS NULL OR NOT `owner`.`blocked`); diff --git a/doc/database/db_report.md b/doc/database/db_report.md index cb2bcb189..d14383999 100644 --- a/doc/database/db_report.md +++ b/doc/database/db_report.md @@ -35,6 +35,7 @@ Indexes | cid | cid | | reporter-id | reporter-id | | gsid | gsid | +| last-editor-uid | last-editor-uid | | assigned-uid | assigned-uid | | status-resolution | status, resolution | | created | created | diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 33cf1d86a..303e42e03 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -1710,6 +1710,7 @@ return [ "cid" => ["cid"], "reporter-id" => ["reporter-id"], "gsid" => ["gsid"], + "last-editor-uid" => ["last-editor-uid"], "assigned-uid" => ["assigned-uid"], "status-resolution" => ["status", "resolution"], "created" => ["created"], diff --git a/static/dbview.config.php b/static/dbview.config.php index 004063a41..43959f363 100644 --- a/static/dbview.config.php +++ b/static/dbview.config.php @@ -776,13 +776,15 @@ ], "query" => "FROM `post-user` INNER JOIN `post-thread-user` ON `post-thread-user`.`uri-id` = `post-user`.`parent-uri-id` AND `post-thread-user`.`uid` = `post-user`.`uid` - INNER JOIN `contact` ON `contact`.`id` = `post-thread-user`.`contact-id` + STRAIGHT_JOIN `contact` ON `contact`.`id` = `post-thread-user`.`contact-id` + STRAIGHT_JOIN `contact` AS `authorcontact` ON `authorcontact`.`id` = `post-thread-user`.`author-id` + STRAIGHT_JOIN `contact` AS `ownercontact` ON `ownercontact`.`id` = `post-thread-user`.`owner-id` LEFT JOIN `user-contact` AS `author` ON `author`.`uid` = `post-thread-user`.`uid` AND `author`.`cid` = `post-thread-user`.`author-id` LEFT JOIN `user-contact` AS `owner` ON `owner`.`uid` = `post-thread-user`.`uid` AND `owner`.`cid` = `post-thread-user`.`owner-id` - INNER JOIN `contact` AS `ownercontact` ON `ownercontact`.`id` = `post-thread-user`.`owner-id` WHERE `post-user`.`visible` AND NOT `post-user`.`deleted` AND (NOT `contact`.`readonly` AND NOT `contact`.`blocked` AND NOT `contact`.`pending`) AND (`post-user`.`hidden` IS NULL OR NOT `post-user`.`hidden`) + AND NOT `authorcontact`.`blocked` AND NOT `ownercontact`.`blocked` AND (`author`.`blocked` IS NULL OR NOT `author`.`blocked`) AND (`owner`.`blocked` IS NULL OR NOT `owner`.`blocked`)" ], @@ -803,12 +805,14 @@ "query" => "FROM `post-thread-user` INNER JOIN `post-user` ON `post-user`.`id` = `post-thread-user`.`post-user-id` STRAIGHT_JOIN `contact` ON `contact`.`id` = `post-thread-user`.`contact-id` + STRAIGHT_JOIN `contact` AS `authorcontact` ON `authorcontact`.`id` = `post-thread-user`.`author-id` + STRAIGHT_JOIN `contact` AS `ownercontact` ON `ownercontact`.`id` = `post-thread-user`.`owner-id` LEFT JOIN `user-contact` AS `author` ON `author`.`uid` = `post-thread-user`.`uid` AND `author`.`cid` = `post-thread-user`.`author-id` LEFT JOIN `user-contact` AS `owner` ON `owner`.`uid` = `post-thread-user`.`uid` AND `owner`.`cid` = `post-thread-user`.`owner-id` - LEFT JOIN `contact` AS `ownercontact` ON `ownercontact`.`id` = `post-thread-user`.`owner-id` WHERE `post-user`.`visible` AND NOT `post-user`.`deleted` AND (NOT `contact`.`readonly` AND NOT `contact`.`blocked` AND NOT `contact`.`pending`) AND (`post-thread-user`.`hidden` IS NULL OR NOT `post-thread-user`.`hidden`) + AND NOT `authorcontact`.`blocked` AND NOT `ownercontact`.`blocked` AND (`author`.`blocked` IS NULL OR NOT `author`.`blocked`) AND (`owner`.`blocked` IS NULL OR NOT `owner`.`blocked`)" ], From 52c062adb6f1fc4eea1474fa1269e6afe8303799 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 11 Jul 2023 07:43:53 +0000 Subject: [PATCH 115/259] Fix "Cannot add or update a child row: a foreign key constraint fails" --- database.sql | 2 +- doc/database/db_report.md | 2 +- static/dbstructure.config.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/database.sql b/database.sql index 13158d1ea..e9db927f1 100644 --- a/database.sql +++ b/database.sql @@ -1695,7 +1695,7 @@ CREATE TABLE IF NOT EXISTS `report` ( `uid` mediumint unsigned COMMENT 'Reporting user', `reporter-id` int unsigned COMMENT 'Reporting contact', `cid` int unsigned NOT NULL COMMENT 'Reported contact', - `gsid` int unsigned NOT NULL COMMENT 'Reported contact server', + `gsid` int unsigned COMMENT 'Reported contact server', `comment` text COMMENT 'Report', `category-id` int unsigned NOT NULL DEFAULT 1 COMMENT 'Report category, one of Entity\Report::CATEGORY_*', `forward` boolean COMMENT 'Forward the report to the remote server', diff --git a/doc/database/db_report.md b/doc/database/db_report.md index d14383999..c2890e25a 100644 --- a/doc/database/db_report.md +++ b/doc/database/db_report.md @@ -12,7 +12,7 @@ Fields | uid | Reporting user | mediumint unsigned | YES | | NULL | | | reporter-id | Reporting contact | int unsigned | YES | | NULL | | | cid | Reported contact | int unsigned | NO | | NULL | | -| gsid | Reported contact server | int unsigned | NO | | NULL | | +| gsid | Reported contact server | int unsigned | YES | | NULL | | | comment | Report | text | YES | | NULL | | | category-id | Report category, one of Entity\Report::CATEGORY_* | int unsigned | NO | | 1 | | | forward | Forward the report to the remote server | boolean | YES | | NULL | | diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 303e42e03..1a61d9f21 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -1691,7 +1691,7 @@ return [ "uid" => ["type" => "mediumint unsigned", "foreign" => ["user" => "uid"], "comment" => "Reporting user"], "reporter-id" => ["type" => "int unsigned", "foreign" => ["contact" => "id"], "comment" => "Reporting contact"], "cid" => ["type" => "int unsigned", "not null" => "1", "foreign" => ["contact" => "id"], "comment" => "Reported contact"], - "gsid" => ["type" => "int unsigned", "not null" => "1", "foreign" => ["gserver" => "id"], "comment" => "Reported contact server"], + "gsid" => ["type" => "int unsigned", "foreign" => ["gserver" => "id"], "comment" => "Reported contact server"], "comment" => ["type" => "text", "comment" => "Report"], "category-id" => ["type" => "int unsigned", "not null" => 1, "default" => \Friendica\Moderation\Entity\Report::CATEGORY_OTHER, "comment" => "Report category, one of Entity\Report::CATEGORY_*"], "forward" => ["type" => "boolean", "comment" => "Forward the report to the remote server"], From 91d63213ae79f6b75ccc8aa10b427ea36ba3c703 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 11 Jul 2023 09:00:41 -0400 Subject: [PATCH 116/259] Reintroduce is_string modifier in addons/connector templates - Address https://github.com/friendica/friendica/issues/13157#issuecomment-1606003698 --- view/templates/settings/addons/connector.tpl | 2 +- view/theme/frio/templates/settings/addons/connector.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/view/templates/settings/addons/connector.tpl b/view/templates/settings/addons/connector.tpl index adf615f9e..c06c78195 100644 --- a/view/templates/settings/addons/connector.tpl +++ b/view/templates/settings/addons/connector.tpl @@ -9,7 +9,7 @@
    {{if $submit}}