Вход на сайт

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

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

Re: [Mod]ActivityPub Federation for SMF 2.1

Дата публикации: 21-08-2026 20:13:16


The same one from earlier:Code: [Select] db_extend('packages');if (!isset($smcFunc['db_create_table'])) die('ActivityPub installer: db_create_table is NOT available');


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

+-

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: 44216
Total Topics: 7668
Most Online Today: 542
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)


Users Online
Members: 1
Guests: 245
Total: 246


Pages: 1 [2]   Go Down

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

Moobythegoldensock 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/


Re: [Mod]ActivityPub Federation for SMF 2.1

« Reply #21 on: Today at 11:50:17 am »

Installed newest version, had to edit the install.xml again to get the admin area. I can only see the toggle to use my account on ActivityPub on admin account, and when I open permissions I generate errors 2: Undefined array key "permissionname_activitypub_admin" and 2: Undefined array key "permissiongroup_activitypub"

Posts seem to be logging on SMF's end, haven't tried to access from a Lemmy client yet.

Logged


Re: [Mod]ActivityPub Federation for SMF 2.1

« Reply #22 on: Today at 12:10:36 pm »

What change did you make for the edit?

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 #23 on: Today at 03:13:16 pm »

The same one from earlier:

db_extend('packages');

if (!isset($smcFunc['db_create_table']))
die('ActivityPub installer: db_create_table is NOT available');

Logged


Re: [Mod]ActivityPub Federation for SMF 2.1

« Reply #24 on: Today at 04:09:46 pm »

hmm i thought i added
db_extend('packages');
 to install.php

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
6110 Views
Last post April 20, 2010, 09:31:15 am
by SMFHacks
2 Replies
5877 Views
Last post December 13, 2010, 05:11:03 pm
by G1
1 Replies
4336 Views
Last post August 28, 2011, 07:01:45 pm
by SMFHacks
1 Replies
7097 Views
Last post May 25, 2017, 01:15:53 pm
by shuban
0 Replies
13490 Views
Last post March 16, 2026, 08:16:18 pm
by SMFHacks

+- Recent Topics
[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
Today at 04:09:46 pm

[Mod]Block Proxy VPN On Registration by Alistair
Today at 12:36:09 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by SMFHacks
August 19, 2026, 04:15:22 pm

SMFHacks error messages by pete
August 16, 2026, 02:43:37 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

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

#Наименование новостиТональностьИнформативностьДата публикации
1Re: [Mod]ActivityPub Federation for SMF 2.1015.2621-08-2026
2Re: [Mod]ActivityPub Federation for SMF 2.108.2921-08-2026
3Re: [Mod]ActivityPub Federation for SMF 2.1015.2621-08-2026
4Re: [Mod]Block Proxy VPN On Registration09.8721-08-2026
5Re: Do I need to recount forum statistics?07.921-08-2026
6Mehrere Probleme in samba (SUSE)01030-07-2026
7Mehrere Probleme in samba (SUSE)01030-07-2026
8Fwupd 2.1.7 Released With Many Bug Fixes012.9427-07-2026
9Starting the output failed. Please check log for details0003-07-2026

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