Skip to content

Commit

Permalink
Address client deprecations (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod authored Dec 19, 2024
1 parent 6fc7971 commit 117a6fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class ActivityPubPostInfo extends Component {

get stateIcon() {
if (this.args.model.state === "not_published") {
return "far-dot-circle";
return "far-circle-dot";
} else {
return this.args.model.post.activity_pub_local
? "arrow-up"
Expand All @@ -57,7 +57,7 @@ export default class ActivityPubPostInfo extends Component {

get visibilityIcon() {
return this.args.model.post.activity_pub_visibility === "public"
? "globe-americas"
? "earth-americas"
: "lock";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,19 @@ export default {
withPluginApi("1.6.0", (api) => {
const currentUser = api.getCurrentUser();

api.includePostAttributes("activity_pub_enabled", "activity_pub_enabled");
api.includePostAttributes(
api.addTrackedPostProperties(
"activity_pub_enabled",
"activity_pub_scheduled_at",
"activity_pub_scheduled_at"
);
api.includePostAttributes(
"activity_pub_published_at",
"activity_pub_published_at"
);
api.includePostAttributes(
"activity_pub_deleted_at",
"activity_pub_deleted_at"
);
api.includePostAttributes(
"activity_pub_updated_at",
"activity_pub_updated_at"
);
api.includePostAttributes(
"activity_pub_visibility",
"activity_pub_visibility"
);
api.includePostAttributes("activity_pub_local", "activity_pub_local");
api.includePostAttributes("activity_pub_url", "activity_pub_url");
api.includePostAttributes(
"activity_pub_local",
"activity_pub_url",
"activity_pub_object_type",
"activity_pub_object_type"
);
api.includePostAttributes("activity_pub_domain", "activity_pub_domain");
api.includePostAttributes(
"activity_pub_domain",
"activity_pub_first_post",
"activity_pub_first_post"
);
api.includePostAttributes(
"activity_pub_is_first_post",
"activity_pub_is_first_post"
);
api.includePostAttributes(
"activity_pub_object_id",
"activity_pub_object_id"
);
api.serializeOnCreate("activity_pub_visibility");
Expand Down

0 comments on commit 117a6fb

Please sign in to comment.