Commit graph

273 commits

Author SHA1 Message Date
Mike Macgirvin
39a36cfba9 introduce filter_moderate option 2023-06-02 07:50:40 +10:00
Mike Macgirvin
f3263510b0 store content text if provided in Follow activities 2023-05-27 16:45:53 +10:00
Mike Macgirvin
d71b3ec9c2 Merge branch 'dev' of codeberg.org:streams/streams into dev 2023-05-24 21:55:42 -07:00
Mike Macgirvin
a7ec5f457a handle rogue dm replies with different privacy scope. 2023-05-24 21:54:05 -07:00
Mike Macgirvin
faa91b1673 undefined $item_normal, removing tracing for and ignore attachments sent as empty strings. 2023-05-24 07:37:57 +10:00
Mike Macgirvin
90c368f532 remove restriction on friending the system channel. This has been possible for some time. 2023-05-16 21:34:01 +10:00
Mike Macgirvin
75b51496c0 deprecate PropertyValue per FEP, use Note. 2023-05-16 21:06:18 +10:00
Mike Macgirvin
fb01830791 add extensions to photos attached from cloud to reduce duplicates. 2023-05-15 06:13:06 +10:00
Mike Macgirvin
d3b37cf69f No need to render all 3 quoted post types from calckey if we've already rendered the same url at least once. 2023-05-12 06:38:33 +10:00
Mike Macgirvin
849c96461e finish cleanup of sources 2023-05-06 15:55:09 +10:00
Mike Macgirvin
67031b837e fixups 2023-05-04 13:59:48 -07:00
Mike Macgirvin
79a18ce361 Merge branch 'release' into dev 2023-05-04 13:58:33 -07:00
Mike Macgirvin
b62d28e44b fixes 2023-05-04 13:58:26 -07:00
Mike Macgirvin
c942eb79d0 fixes 2023-05-04 13:55:11 -07:00
Mike Macgirvin
9ba66dff87 add local fetch so we can use the observer permissions on items instead of the system channel permissions. 2023-05-04 21:37:49 +10:00
Mike Macgirvin
a412ce4f98 remote DM notification issue 2023-05-03 14:13:45 -07:00
Mike Macgirvin
d5724e9cb3 logic issue 2023-05-03 05:02:51 -07:00
Mike Macgirvin
a15a803a3e check tombstones for parents also and save some work 2023-05-01 05:48:44 +10:00
Mike Macgirvin
8c76acc132 do not re-import manually deleted posts (but do update expired posts that have new content) 2023-04-27 22:35:28 -07:00
Mike Macgirvin
105d57b1a4 Merge branch 'dev' of codeberg.org:streams/streams into dev 2023-04-18 20:21:30 +10:00
Mike Macgirvin
ac4fad81e1 yet more work on preventing duplicate videos 2023-04-17 12:25:16 -07:00
Mike Macgirvin
c22bc2075f minor optimisation 2023-04-15 16:54:15 +10:00
Mike Macgirvin
f31f5b4eea use Channel::keyId() in Activity::fetch() 2023-04-12 15:17:42 -07:00
Mike Macgirvin
440fef7ea5 federated deletion issue 1/2 2023-03-26 21:56:05 -07:00
Mike Macgirvin
e60dc32b84 reset activitypub permissions of re-followed after an unfollow 2023-03-22 22:21:07 -07:00
Mike Macgirvin
6448b83444 cleanup 2023-03-19 19:36:36 +11:00
Mike Macgirvin
f9fea6b5e6 refactor "permit-all-likes" 2023-03-12 19:41:15 -07:00
Mike Macgirvin
a984ba1e89 found the bug 2023-03-07 08:48:55 +11:00
Mike Macgirvin
2ff2aad1b0 more logging to track down friendica group/forum delivery issue 2023-03-07 07:48:28 +11:00
Mike Macgirvin
e23426c971 couple of ld-sig context fetching improvements 2023-03-05 07:37:53 +11:00
Mike Macgirvin
89794afeb1 put security context back 2023-02-23 20:33:22 +11:00
Mike Macgirvin
277deb223e stop trying to fetch the un-fetchable security context 2023-02-23 19:27:51 +11:00
Mike Macgirvin
bba46bfb82 issue #50 also some work on notifications reappearing 2023-02-21 17:57:15 +11:00
Mike Macgirvin
37a46e7f6a Refactor the help module 2023-02-10 06:45:30 +11:00
Mike Macgirvin
d8277f200d accept coordinates in plaintext location field. 2023-02-09 06:27:08 +11:00
Mike Macgirvin
9ee206267c duplicated images revisited 2023-02-05 11:55:19 +11:00
Mike Macgirvin
1acb18cf26 Activity::encode_attachment() providing incorrect results 2023-01-31 05:30:05 +11:00
Mike Macgirvin
b2b8dbe1b1 implement canSearch 2023-01-26 07:32:42 +11:00
Mike Macgirvin
872de22f4b Don't user site search permissions to determine whether to show individual search links. 2023-01-26 07:01:31 +11:00
Mike Macgirvin
4b9d53e44f Merge branch 'dev' of codeberg.org:streams/streams into search_perms 2023-01-25 19:52:43 +11:00
Mike Macgirvin
01379f6cbf misplaced quote 2023-01-25 07:56:23 +11:00
Mike Macgirvin
c8d7ffc447 give hashtags a type, even though the spec says they are the default type. 2023-01-25 07:54:10 +11:00
Mike Macgirvin
4353b1c06a add actor object changes 2023-01-22 20:14:02 +11:00
Mike Macgirvin
d03977954c Merge branch 'dev' into search_perms 2023-01-22 13:29:05 +11:00
Mike Macgirvin
7452f71c5c indent 2023-01-22 13:28:37 +11:00
Mike Macgirvin
94a544d944 Search permissions part 2 with the dev doco. 2023-01-22 12:28:38 +11:00
Mike Macgirvin
e1b9a29d87 review/refactor federated search 2023-01-21 08:22:35 +11:00
Mike Macgirvin
f637952270 it always helps to spellchek :-) 2023-01-03 07:56:31 +11:00
Mike Macgirvin
b98c6f18ef Add 'sensitive' flag to posts tagged n-s-f-w for the benefit of Mastodon folks. 2023-01-03 07:54:03 +11:00
Mike Macgirvin
79f55463fa make the same changes to the C2S subsystem 2023-01-02 19:02:23 +11:00
Mike Macgirvin
72b8d77936 replyApproval -> approval 2022-12-21 09:12:07 +11:00
Mike Macgirvin
7ea4d9d6be Merge branch 'dev' into commperms 2022-12-21 07:33:43 +11:00
Mike Macgirvin
255a4d9ba3 more fixes for polls 2022-12-21 07:33:11 +11:00
Mike Macgirvin
774f70445d Merge branch 'dev' into commperms 2022-12-21 07:11:03 +11:00
Mike Macgirvin
3ba6df18d6 fix json-ld parsing errors 2022-12-21 07:06:36 +11:00
Mike Macgirvin
2744eaecea add feature toggle for fep5624 2022-12-18 08:43:34 +11:00
Mike Macgirvin
108bd628fb more work on fep-5624 2022-12-17 09:32:59 +11:00
Mike Macgirvin
50658b4da7 Merge branch 'dev' into commperms 2022-12-16 08:30:16 +11:00
Mike Macgirvin
83654bedc3 add identity context and refactor context generation 2022-12-16 08:24:47 +11:00
Mike Macgirvin
ee19699827 FEP-5624 continued 2022-12-12 06:16:17 +11:00
Mike Macgirvin
c29e8d0d0e More work on FEP-5624 2022-12-05 05:15:43 +11:00
Mike Macgirvin
34f6cb5966 WIP: comment permissions 2022-11-30 17:23:24 +11:00
Mike Macgirvin
8dcdc4f471 FEP-5624 implementation continued 2022-11-29 07:53:03 +11:00
Mike Macgirvin
f968fc77c5 presentation issue when a checkin/checkout includes both coordinates and a string location. 2022-11-21 16:10:04 -08:00
Mike Macgirvin
866527872b backend support for 'Leave' (checkout) 2022-11-21 21:00:36 +11:00
Mike Macgirvin
2726d0ff6a avoid double dipping 2022-11-19 09:11:19 +11:00
Mike Macgirvin
f362a323f1 check-ins - avoid duplicating the generated map 2022-11-13 08:37:49 +11:00
Mike Macgirvin
b7e66fe2d6 Merge branch 'dev' of codeberg.org:streams/streams into dev 2022-11-12 08:25:58 +11:00
Mike Macgirvin
c836dbb922 wording change 2022-11-12 08:23:18 +11:00
Mike Macgirvin
457657da13 location tagging stuff 2022-11-10 19:56:42 +11:00
Mike Macgirvin
90c94feb6c objcache 2022-11-07 08:56:10 +11:00
Mike Macgirvin
e2db958247 cleanup 2022-10-23 16:00:42 +11:00
Mike Macgirvin
125f82dd97 refactor get_post_tags() to remove link argument 2022-10-23 11:50:31 +11:00
Mike Macgirvin
71e826af2c style 2022-10-21 18:12:11 +11:00
Mike Macgirvin
fa28accadb missing var 2022-10-21 06:46:59 +11:00
Mike Macgirvin
b1e160fb8d cleanup 2022-10-20 20:23:02 +11:00
Mike Macgirvin
527e5553c0 regression in comment handling. 2022-10-19 17:00:48 -07:00
Mike Macgirvin
b5dea507fe preliminary work on permitting moderated comments from unknown strangers 2022-10-12 22:00:23 +11:00
Mike Macgirvin
7cb518b70a cleanup 2022-10-11 18:59:26 +11:00
Mike Macgirvin
33bc8b278f refactoring 2022-10-09 16:10:31 +11:00
Mike Macgirvin
2af67e8d5f Merge branch 'dev' of /home/macgirvin/streams into dev 2022-10-08 21:44:20 -07:00
Mike Macgirvin
9c2e32725f use hashtag type instead of default 2022-10-08 21:43:35 -07:00
Mike Macgirvin
d09525b76d cleanup of activity.php continued 2022-10-09 15:39:03 +11:00
Mike Macgirvin
b0df88aa51 comment work 2022-10-09 12:47:49 +11:00
Mike Macgirvin
0504102b33 geo 2022-09-16 20:57:04 +10:00
Mike Macgirvin
9b0ca686ed rename the variable 2022-09-11 20:19:32 +10:00
Mike Macgirvin
5de08abfdc over-ride locations 2022-09-11 08:20:18 +10:00
Mike Macgirvin
08350b7ec1 finish support for FEP-e232 (quoted share) 2022-09-05 20:38:57 -07:00
Mike Macgirvin
24e82855cd rename discover_by_webbie() to discover_resource() 2022-09-04 07:30:13 +10:00
Mike Macgirvin
94e4d277a6 cleanup 2022-08-23 20:15:05 +10:00
Mike Macgirvin
864e6f19fa code cleanup 2022-08-14 19:20:43 +10:00
Mike Macgirvin
6f2d46947d code cleanup 2022-08-13 20:57:14 +10:00
Mike Macgirvin
1e1d7f6ddd provide debug output on Activity::fetch if signature fails 2022-08-10 14:24:55 -07:00
Mike Macgirvin
1abebeefb4 add preview_outbox setting 2022-08-09 14:39:09 -07:00
Mike Macgirvin
40de3a15a0 collection work 2022-08-05 14:12:53 -07:00
Mike Macgirvin
f63eca280d FEP-e232 - implement quote url as tags in addition to the other dozen ways of doing it. 2022-08-04 07:23:36 +10:00
Mike Macgirvin
394c729616 Duplicated images from Friendica - refactor because it wasn't working correctly. 2022-07-29 14:46:26 -07:00
Mike Macgirvin
90049a4b91 Missing ActivityPub address fields in Hubzilla. Maybe only when AP is turned off, but still... 2022-07-21 21:05:44 -07:00
Mike Macgirvin
15a0a1a2ca typo in apschema 2022-07-20 04:57:20 -07:00
Mike Macgirvin
1a3b2497b5 tabs->spaces 2022-07-20 15:27:23 +10:00
Mike Macgirvin
9460058cce refactor Url::ssl_exception and fix top-level addressing in Activity::encode_activity 2022-07-18 15:03:22 -07:00
Mike Macgirvin
2abdeff494 more activity recipient cleanup 2022-07-18 05:27:03 -07:00
Mike Macgirvin
9008a0ad3a deal with recipient mismatches between activity and object, prevent fetched polls from entering the notifier 2022-07-18 03:47:05 -07:00
Mike Macgirvin
0fa3363656 tighten up the specificity of the most recent change to Activity::media_not_in_body() 2022-07-14 15:32:15 -07:00
Mike Macgirvin
1de017db1b Add all the special cases to Activity::media_not_in_body() to deal with Hubzilla's implementation of bbcode img.alt tags. 2022-07-14 15:27:23 -07:00
Mike Macgirvin
7c6277dd87 more thorough check of object actor to ensure it represents a record array and not an id string. 2022-07-13 17:32:34 -07:00
Mike Macgirvin
0c5d237e02 use zot_record_preferred in find_best_identity() - not certain why this wasn't done initially. 2022-07-13 17:16:02 -07:00
Mike Macgirvin
bbf098c071 Fix double images from Friendica sources where the attachment url is different from the link in the body. 2022-07-07 15:31:16 -07:00
Mike Macgirvin
6b26dbb3de attempt to dbesc an array from a malformed activity 2022-07-04 19:48:49 -07:00
nobody
9dc37df489 refactor language detection 2022-07-05 11:34:07 +10:00
Mike Macgirvin
024e1bec6f Permit context to be an array 2022-06-30 15:07:44 -07:00
Mike Macgirvin
1bfc965f33 Force Activity::update_poll to honour the item_store() delivery setting. 2022-06-29 13:28:05 -07:00
Mike Macgirvin
89a6485642 deprecate zoturl 2022-06-28 22:19:12 -07:00
Mike Macgirvin
3b81e762e1 more work on federated quoted notes 2022-06-27 22:15:19 -07:00
Mike Macgirvin
fa6bfd2bf3 more work on quoted post federation 2022-06-27 20:10:51 -07:00
Mike Macgirvin
2bd649d453 More compatibility fixes related to federation of "quoteUrl". 2022-06-27 18:48:48 -07:00
Mike Macgirvin
2cf3f9ed9d Change the default cover photo and the default_cover_photo logic. 2022-06-26 15:40:09 -07:00
Mike Macgirvin
330c31a4e9 deprecate the interactive argument to drop_item() 2022-06-26 01:36:02 -07:00
Mike Macgirvin
1e9cc85947 Add the importer to MessageFilter evaluation to match language filters for completed conversations.
Remove the arbitrary thread fetch count limit.
2022-06-24 13:59:30 -07:00
Mike Macgirvin
9e8ab96c2f typo 2022-06-23 16:39:49 -07:00
Mike Macgirvin
c5fce31c46 Fix a couple of minor anomalies discovered in AS encoding of items (attachments and propertyvalues) 2022-06-23 16:37:11 -07:00
Mike Macgirvin
594f0cb76e This should fix the double share issue 2022-06-23 13:44:21 -07:00
Mike Macgirvin
bb9c687de3 deprecate z_fetch_url() and friends. Now use Code\Lib\Url::{fetch|get}() 2022-06-23 00:38:34 -07:00
Mike Macgirvin
0643d4c487 Improve input sanitisation for Activity share. 2022-06-21 19:12:16 -07:00
Mike Macgirvin
8d5e923775 Conflict with share class namespace, use Zlib explicitly. Check for missing/null data after unpacking jsalmon from remote. 2022-06-21 16:36:56 -07:00
Mike Macgirvin
d2e0143ace Trim unicode spaces on imported name field. 2022-06-17 16:22:17 -07:00
Mike Macgirvin
37afc9555f activitystreams url parse issue, re-factor naked links replacement 2022-06-17 15:41:57 -07:00
Mike Macgirvin
35e02f25d6 begin hubloc refactor 2022-06-16 19:46:54 -07:00
Mike Macgirvin
956fda2c21 Merge branch 'dev' of ../rebble.net into dev 2022-06-16 14:49:32 -07:00
Mike Macgirvin
526b9e41d2 slightly more aggressive/proactive hubloc filtering 2022-06-16 14:48:13 -07:00
Mike Macgirvin
49015e288a malformed reject/note activity 2022-06-16 13:40:47 -07:00
Mike Macgirvin
5928477b76 image description escaping continued 2022-06-10 02:18:37 -07:00
Mike Macgirvin
e47ddf4262 typo 2022-06-08 19:22:31 -07:00
Mike Macgirvin
dcc294d67a remove all remote tracking services and their enablers 2022-06-08 16:48:07 -07:00
Mike Macgirvin
38a4527d21 use unicode full width bracket to escape brackets in alt text 2022-06-07 00:45:57 -07:00
Mike Macgirvin
4780df8a63 escape brackets in alt tags from remote sources. 2022-06-07 00:25:27 -07:00
Mike Macgirvin
de966207d7 cleanup and reduce log noise 2022-05-30 13:54:08 -07:00
Mike Macgirvin
d587a4d367 wrong hublocs being assigned 2022-05-24 20:56:49 -07:00
Mike Macgirvin
e621a25e9a Merge branch 'dev' of ../unfediverse.com into dev 2022-05-24 17:29:05 -07:00
Mike Macgirvin
c252f33375 bugfixes with linkinfo and zotobj 2022-05-24 17:28:11 -07:00
Mike Macgirvin
cf2b8fdb30 deprecate ostatus:conversation 2022-05-19 13:47:30 -07:00
Mike Macgirvin
0218221db5 extra paren 2022-05-11 15:26:06 -07:00
nobody
325d85c969 correctly mirror "Answer" activities. 2022-04-30 22:57:46 -07:00
nobody
5b134eecb5 provide ActivityStreams->objprop() to save a lot of array existence checks on $AS->obj and its potential children which have been cluttering the code since php8. 2022-04-29 14:32:41 -07:00
nobody
ad487eefe7 slight improvements in handling empty objects 2022-04-29 02:48:06 -07:00
nobody
4aabd68c61 reject activities that reference unfetchable objects 2022-04-29 00:52:52 -07:00
nobody
2875b6e7bd more fixes for unfetchable object 2022-04-29 00:13:41 -07:00
nobody
9215bf0ea8 This issue runs deep 2022-04-28 18:34:47 -07:00
nobody
23007a14e4 more error check 2022-04-28 17:23:59 -07:00
nobody
232724cd88 regressions 2022-04-28 14:05:27 -07:00