Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Re: [Mod]ActivityPub Federation for SMF 2.1

Дата публикации: 12-08-2026 00:28:31

Cool! I won't have time to test again until next week, but I'll let you know how the update goes.

Основное содержимое страницы с новостью.

+-

SMFHacks.com
+- User Information
Welcome, Guest.
Please login or register.
Login: 
Password: 
Login for: 
Forgot your password?
+- Forum Stats

Members
Total Members: 4339
Latest: FOL
New This Month: 2
New This Week: 0
New Today: 0


Stats
Total Posts: 44202
Total Topics: 7668
Most Online Today: 722
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)


Users Online
Members: 1
Guests: 66
Total: 67


Pages: 1 [2]   Go Down

Author Topic: [Mod]ActivityPub Federation for SMF 2.1  (Read 5375 times)

0 Members and 1 Guest are viewing this topic.

Re: [Mod]ActivityPub Federation for SMF 2.1

« Reply #15 on: August 10, 2026, 03:24:15 pm »

Any errors in the error_log for this or anything you can see

So the current failure appears to be occurring after activitypub_create_object_from_message() returns, likely in the subsequent Create/Announce activity construction or delivery/queuing code.

Logged

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/


Re: [Mod]ActivityPub Federation for SMF 2.1

« Reply #16 on: August 11, 2026, 07:44:33 am »

The only one that was natively throwing errors were likes. After I installed, likes werent saving and it was tossing errors in the log (I didnt save those, sorry.)

What I figured out was that the ActivityPub hook in Subs-ActivityPub.php was directly accessing $obj->_content and $obj->_type, but those properties are protected in my version of Likes.php. Likes provides the public get() method for accessing them.

I changed:

$content_id = $obj->_content;
$content_type = $obj->_type;

to:

$content_id = $obj->get('content');
$content_type = $obj->get('type');

That seems to have fixed it.

Posting wasnt throwing any actual errors, Acrivitypub was just showing 0 posts. I entered logging lines into the mod pages to try and figure out where it was tripping up.

My logs showed that the ActivityPub hook runs immediately after db_insert, while topicOptions['id'] is still 0. The immediate message lookup consequently returned the new message with id_topic=0, and the first test produced:

object lookup rows=0
On a later test, the object lookup succeeded and activitypub_serialize_note() returned a non-empty array, so the serializer itself appears to be working.

The relevant sequence for the failing post was:

after db_insert msg_id=981446
topicOptions[id]=0
immediate message found ... id_topic=0
calling object creator with msg ID=981446
object lookup rows=0
object return type=boolean
object empty=YES

Logged


Re: [Mod]ActivityPub Federation for SMF 2.1

« Reply #17 on: August 11, 2026, 03:41:53 pm »

Great feedback updated with the previously mentioned issues.

Their is a new hook registered at install time, so their existing installation won't pick it up from a file update alone. Reinstall the mod, or register the hook once on their live board,
  e.g. via a quick script:

  add_integration_function('integrate_create_topic', 'activitypub_create_topic', true, '$sourcedir/Subs-ActivityPub.php', false);

Logged

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/


Re: [Mod]ActivityPub Federation for SMF 2.1

« Reply #18 on: August 11, 2026, 07:28:31 pm »

Cool! I won't have time to test again until next week, but I'll let you know how the update goes.

Logged


Re: [Mod]ActivityPub Federation for SMF 2.1

« Reply #19 on: August 13, 2026, 05:32:26 am »

Current version is missing .well-known directory.

Logged


Re: [Mod]ActivityPub Federation for SMF 2.1

« Reply #20 on: August 13, 2026, 04:26:13 pm »

Fixed bad habit of trying to skip files that start with a period.

Logged

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/


Pages: 1 [2]   Go Up

Related Topics
  Subject / Started by Replies Last post
1 Replies
6108 Views
Last post April 20, 2010, 09:31:15 am
by SMFHacks
2 Replies
5871 Views
Last post December 13, 2010, 05:11:03 pm
by G1
1 Replies
4331 Views
Last post August 28, 2011, 07:01:45 pm
by SMFHacks
1 Replies
7091 Views
Last post May 25, 2017, 01:15:53 pm
by shuban
0 Replies
13484 Views
Last post March 16, 2026, 08:16:18 pm
by SMFHacks

+- Recent Topics
SMFHacks error messages by SMFHacks
Today at 08:17:12 am

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
August 13, 2026, 04:26:13 pm

Missing the line of buttons for editing on mobile by SMFHacks
August 10, 2026, 05:53:25 am

[Mod]DonationGoal/Treasury v3.0 - Donation Management for SMF 2.1 by SMFHacks
July 26, 2026, 01:27:21 pm

JFIF Files support? by SMFHacks
July 26, 2026, 12:45:20 pm

Links location error by mickjav
July 02, 2026, 03:57:34 am

Moving a picture from one gallery to another gallery is very difficult by SMFHacks
June 24, 2026, 05:12:30 pm

Member Tooltips on this site by SMFHacks
June 20, 2026, 09:01:33 am

Can't remove or restore any item from the recycle bin by SMFHacks
June 04, 2026, 11:36:22 am

Recent install Classifieds2.php version 7 (on SMF 2.1.7) generating errors by VP Sandman
May 11, 2026, 07:43:36 am

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Re: [Mod]ActivityPub Federation for SMF 2.1026.6713-08-2026
2Re: [Mod]ActivityPub Federation for SMF 2.1015.2613-08-2026
3Re: SMFHacks error messages01016-08-2026
4Fwupd 2.1.7 Released With Many Bug Fixes012.9427-07-2026
5SMFHacks error messages014.0116-08-2026
6net-im/py-zapzap - 7.4.1029.8215-08-2026
7Рябков: расширение списка стран для восстановления авиасообщения может занять недели0004-08-2020
8Mario Tennis Fever update adds new Super Mario Galaxy themed court, racket and match type0516-07-2026
9NetBSD working on updated Enlightenment port01011-08-2026

Классификация: Пресс-релизы. Схожих патентов: 0. Схожих новостей: 9. Тональность: 0. Информативность: 17.69. Источник: www.smfhacks.com.