André Menrath
0d7462de06
Improve the detection of a banner image.
...
- Also accept attachments of type Image
- Prefer the key "image" if it is set as the banner image (https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object )
- solves #1399
Co-authored-by: Thomas Citharel <tcit@tcit.fr>
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 16:55:35 +01:00
Thomas Citharel
d0835232d6
refactor(backend): change naming of function names to avoid the is_ prefix
...
Following Credo.Check.Readability.PredicateFunctionNames check
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-01-04 13:35:08 +01:00
Thomas Citharel
428537df1f
refactor: remove some outdated todos and legacy fallbacks
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-01-04 13:02:16 +01:00
Thomas Citharel
9308c5399d
fix(activitypub): handle any type of error when fetching Application actor from NodeInfo
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-01-03 18:33:16 +01:00
Thomas Citharel
da3b074619
fix(nodeinfo): make sure we only process JSON content
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-01-03 18:33:13 +01:00
Thomas Citharel
7351468842
fix(activitypub): handle actors following with manually_approves_followers not set
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-22 15:57:29 +01:00
Thomas Citharel
58e4239aae
Merge branch 'extract-nodeinfo-metadata' into 'main'
...
feat(nodeinfo): extract and save NodeInfo information from instances to...
Closes #1392
See merge request framasoft/mobilizon!1513
2023-12-21 10:05:26 +00:00
Thomas Citharel
99b2339424
feat(nodeinfo): extract and save NodeInfo information from instances to display it on instances list
...
We also try to detect the application actor if it's not given by NodeInfo metadata (FEP-2677)
(guessing for Mobilizon, PeerTube & Mastodon).
Closes #1392
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-21 10:45:56 +01:00
Thomas Citharel
e73fd9b370
fix(activitypub): make relay outbox events ordered by desc publication date
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-20 09:24:59 +01:00
Thomas Citharel
001a0ed1a5
fix(activitypub): do not try to calculate timezone from missing geo-coordinates
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-19 10:53:12 +01:00
Thomas Citharel
64237cfc26
feat(activitypub): allow simple text for address field
...
Closes #1387
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-19 10:52:31 +01:00
Thomas Citharel
00250ff33a
refactor(activitypub): cleanup unused imports and variables
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-19 09:53:05 +01:00
Thomas Citharel
dd775b6ae2
fix(nodeinfo): fix getting application actor information from NodeInfo response
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-19 09:52:32 +01:00
Thomas Citharel
f10977a99a
feat(activitypub): implement FEP-2677 to identify the application actor used for federation
...
Instead of always assuming it will be @relay@host.tld
Closes #1367
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-14 16:31:58 +01:00
Thomas Citharel
09f41328ab
fix(graphql): set default value for resource type parameter
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-06 14:43:51 +01:00
Thomas Citharel
dc6647f5dc
fix: sanitize descriptions from resources
...
Currently resources descriptions are not used anywhere but they are
prefilled from source URL preview. Still, doesn't hurt to sanitize
these.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-06 11:47:28 +01:00
Thomas Citharel
ffff379d47
fix: always consider report content as text
...
Report content was used as HTML in front-end and e-mails but wasn't sanitized as such.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-06 11:05:56 +01:00
Thomas Citharel
5b337f952a
refactor(activitypub): handle failure finding public key in actor keys
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-06 08:25:02 +01:00
Thomas Citharel
147096cc3d
refactor: to lower cyclomatic complexity
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-05 08:40:01 +01:00
Thomas Citharel
89d1ee42f4
fix(backend): handle ecto errors when fetching and create entities
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-05 08:06:16 +01:00
Thomas Citharel
f1084c101f
fix(activitypub): fix receiving comments
...
Should fix race conditions and actors deleted of received comments
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-05 08:02:09 +01:00
Thomas Citharel
5e8f9afb62
fix(activitypub): compact ical:status in activitystream data
...
Was kept for no other reason than disambiguation with https://schema.org/status , but no need if we
specify the correct alias in the context.
Keeps a fallback for older versions compatibility
Closes #1378
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-04 14:05:27 +01:00
Thomas Citharel
8795576865
fix(activitypub): add missing externalParticipationUrl context
...
Closes #1376
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-03 17:51:05 +01:00
Thomas Citharel
b315e1d7ff
refactor: use Phoenix verified routes
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-01 11:29:53 +01:00
Thomas Citharel
b635937091
fix: various fixes
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-11-20 09:35:21 +01:00
Thomas Citharel
e051df1ab3
test: fix unit backend tests
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-11-15 16:35:40 +01:00
Thomas Citharel
b5672cee7e
WIP
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-11-14 14:24:17 +01:00
Sandro Jäckel
66e89b9ee2
Fix typos
2023-09-25 01:26:02 +02:00
Thomas Citharel
85e4715412
feat(federation): expose public activities as announcements in relay outbx & rfrsh profile aftr fllw
...
Also change ActorView to send proper HTTP error codes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-09-19 18:07:18 +02:00
Luca Eichler
2de6937407
feat: Add option to link an external registration provider for events
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-09-01 18:16:35 +02:00
Thomas Citharel
b105c508c0
feat(reports): improve reportview and allow removing content + resolve report automatically
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-08-31 14:37:54 +02:00
Thomas Citharel
f2ac3e2e5d
feat(reports): allow reports to hold multiple events
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-08-31 10:43:36 +02:00
Thomas Citharel
da532c7059
feat(notifications): add missing notifications when an user registers to an event
...
Closes #1344
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-08-24 17:36:58 +02:00
Thomas Citharel
da70427e32
fix: fix Elixir 1.15 depreciations
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-08-02 09:59:09 +02:00
Thomas Citharel
7c5f8b2431
fix(federation): fix getting pictures from Gruppe actors
...
They directly put urls for icon/image properties
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-06-29 19:30:13 +02:00
Thomas Citharel
f04d2b9225
fix(backend): filter out nil tags before starting looking for existing ones
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-06-20 16:55:37 +02:00
Thomas Citharel
2729d5ed7a
fix(federation): handle string values for tags when constructing mentions
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-06-20 16:55:37 +02:00
Thomas Citharel
552ab4c80b
fix(federation): handle fetch_actor with a map
...
For some reason
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-06-20 16:55:37 +02:00
Thomas Citharel
96b4ef08c6
style: unused variable
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-06-20 14:59:57 +02:00
Thomas Citharel
5381eaae22
fix(federation): rotate relay keys on startup if missing private keys
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-06-06 12:20:35 +02:00
Thomas Citharel
e8d34b4ea9
fix(federation): restrict fetch_group first arg to binaries
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-06-06 09:57:14 +02:00
Thomas Citharel
b981f91cf7
fix(federation): prevent fetching own relay actor
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-06-06 09:52:46 +02:00
Thomas Citharel
2043c98717
fix(typespec): Fix missing return type in typespec
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-21 14:28:33 +02:00
Thomas Citharel
eda2761032
refactor(credo): Refactor to appease new credo checks (complexity and logging)
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-19 18:33:06 +02:00
Thomas Citharel
5c43713d85
Forgot call to clear_feeds_cache
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-01-31 15:22:22 +01:00
Thomas Citharel
f531c39b7e
Make sure every cache is properly cleared when managing an event
...
Closes #1252
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-01-28 17:37:20 +01:00
Thomas Citharel
bb86ca5413
Handle :http_not_found as an error when deleting an object
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-07 19:37:59 +01:00
Thomas Citharel
96ba48cdb0
Handle error when fetching object from tombstone
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-06 15:29:34 +01:00
Thomas Citharel
de8433cdbb
Add error details in error logging in Activity Update handler
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-06 11:33:09 +01:00
Thomas Citharel
6058da0d44
Propertly handle other errors when receiving a comment
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-03 18:11:40 +01:00