Skip to content

Commit 73d0d51

Browse files
authored
Rename activitypub app to social (#323)
* Rename activitypub app * Fix static css * Change base page title back to "activitypub" * Update outdated references
1 parent 87879a5 commit 73d0d51

45 files changed

Lines changed: 412 additions & 482 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/docs/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: docs
33
description: Update, review, or build the Sphinx documentation for Democrasite
44
disable-model-invocation: true
5-
argument-hint: "[what to update or check, e.g. 'review for accuracy' or 'add activitypub section']"
5+
argument-hint: "[what to update or check, e.g. 'review for accuracy' or 'add social section']"
66
---
77

88
## Task
@@ -30,7 +30,7 @@ docs/
3030
├── democrasite.webiscite.views.rst
3131
├── democrasite.webiscite.api.rst
3232
├── democrasite.users.rst
33-
├── democrasite.activitypub.rst
33+
├── democrasite.social.rst
3434
└── … (one file per module)
3535
```
3636

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ just coverage # Run tests with coverage + open HTML report
3131
just shell # Bash shell in django container
3232
just pyshell # Django shell_plus (IPython)
3333
just run <cmd> # Execute arbitrary command in django container
34-
just loaddata # Load fixtures (democrasite + activitypub)
34+
just loaddata # Load fixtures (democrasite + social)
3535
```
3636

3737
To run a single test file or test:
@@ -49,7 +49,7 @@ Pytest is configured with `--ds=config.settings.test --reuse-db` in `pyproject.t
4949

5050
- **`democrasite/webiscite/`** — Core app. Models: `PullRequest`, `Bill`, `Vote`. Handles GitHub webhooks, voting logic, constitution enforcement, and Celery tasks for auto-merging.
5151
- **`democrasite/users/`** — Custom `User` model (extends `AbstractUser` with single `name` field instead of first/last). OAuth integration.
52-
- **`democrasite/activitypub/`**ActivityPub federation. Models: `Person` (linked to User with keypair), `Follow`.
52+
- **`democrasite/social/`**Social network for short notes. Models: `Person` (linked to User with keypair), `Follow`.
5353

5454
### Configuration
5555

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Loading initial data
9494

9595
To load some initial sample data into the database, run::
9696

97-
$ python manage.py loaddata democrasite activitypub
97+
$ python manage.py loaddata democrasite social
9898

9999
Setting up your users
100100
^^^^^^^^^^^^^^^^^^^^^

config/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
# Custom apps
103103
"democrasite.users",
104104
"democrasite.webiscite",
105-
"democrasite.activitypub",
105+
"democrasite.social",
106106
]
107107
# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
108108
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS

config/urls.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
# User management
2424
path("users/", include("democrasite.users.urls", namespace="users")),
2525
path("accounts/", include("allauth.urls")),
26-
# ActivityPub
27-
path(
28-
"activitypub/", include("democrasite.activitypub.urls", namespace="activitypub")
29-
),
26+
# Social
27+
path("social/", include("democrasite.social.urls", namespace="social")),
3028
# webiscite
3129
path("", include("democrasite.webiscite.urls", namespace="webiscite")),
3230
# Media files

democrasite/activitypub/migrations/0001_initial.py

Lines changed: 0 additions & 117 deletions
This file was deleted.

democrasite/activitypub/migrations/0003_alter_person_following.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

democrasite/activitypub/tests/test_urls.py

Lines changed: 0 additions & 102 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from mptt.admin import MPTTModelAdmin
33
from simple_history.admin import SimpleHistoryAdmin
44

5-
from democrasite.activitypub.models import Note
6-
from democrasite.activitypub.models import Person
5+
from democrasite.social.models import Note
6+
from democrasite.social.models import Person
77

88

99
@admin.register(Note)

0 commit comments

Comments
 (0)