Commit graph

18 commits

Author SHA1 Message Date
Matthias Pfefferle
0e710d0789
Try to lookup local users first (#782) 2024-06-11 10:03:38 +02:00
Alex Kirk
9fe9c3ec9e
Ensuring numeric ids is now done in EMA directly (#766) 2024-05-31 09:32:40 +02:00
Matthias Pfefferle
d1c4d2572a fix EMA issue 2024-05-21 10:38:57 +02:00
Matthias Pfefferle
fa699c1110 fix lookup 2024-05-14 09:52:17 +02:00
Alex Kirk
aa521039a8
Add support for fetching external statuses without replies (#759) 2024-05-14 09:26:40 +02:00
Alex Kirk
f6b4783ded
Enable Mastodon Apps: allow searching for URLS (#756)
* Add search by URL

* -
2024-05-06 08:27:03 +02:00
Alex Kirk
ff5ad7e6a9
Enable Mastodon Apps Integration: Add remote context (#749)
* EMA: Load remote replies for context

* Use the new Http::get_remote_object method

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-05-03 08:31:01 +02:00
Alex Kirk
5b9131fded
Add missing static keyword and try to lookup if the id is 0 (#745) 2024-04-30 10:27:26 +02:00
Alex Kirk
60f0668677
Enable Mastodon Apps: Add remote outbox fetching (#717)
* Add remote outbox fetching

* Fix linting

* reformatting

* Use the HTTP::get function and introduce caching

* Update includes/class-http.php

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>

* Update includes/class-http.php

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>

* Use use

* fix indents

* Check for an existing blurhash

* I think this is easier

* Add more error checking

* Remove debug code

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-04-18 11:13:55 +02:00
Matthias Pfefferle
496f080b72 run the hooker later 2024-03-20 20:41:45 +01:00
Matthias Pfefferle
16248fa731 return search data 2024-03-20 20:27:12 +01:00
Matthias Pfefferle
8938178970 search in followers 2024-03-20 20:19:33 +01:00
Matthias Pfefferle
3d43b3bb4d extend account with ActivityPub data 2024-03-19 19:14:18 +01:00
Matthias Pfefferle
15ae5f68ed add followers 2024-03-17 14:59:21 +01:00
Matthias Pfefferle
5988736b14
Add/remote reply (#689) 2024-02-22 16:32:16 +01:00
Alex Kirk
dad6b73cdb
Enable Mastodon Apps: Add followers_count to internal accounts (#676)
* Mock http requests, add followers_count to account object

* Remove one more MockAction

* Add one more assert

* cleanup

* cleanup

* use Users class, to check if user is really an ActivityPub user

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-01-26 17:34:02 +01:00
Alex Kirk
e560d1b5b6
Enable Mastodon Apps: Implement the account endpoint for an external account (#674)
* Implement the account endpoint for an external account

* phpcs

* typos

* Change namespace calling

* Populate with more data

* phpcs

* some formatting

* some phpdoc

* Potentially extend an existing account

props @pfefferle

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>

* phpcs

* Switch to using jsonSerialize

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-01-25 15:54:35 +01:00
Matthias Pfefferle
4fafea35e7
implements a basic followers endpoint for the mastodon api (#666)
* implements a basic followers endpoint for the mastodon api

see https://github.com/akirk/enable-mastodon-apps/pull/67

/cc @akirk

* fix php 5.6 issue
2024-01-18 13:38:02 +01:00