Skip to content

Commit 681ace1

Browse files
committed
feat: enable subscriptions via alias
1 parent bac0af5 commit 681ace1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ingestor.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,17 @@ export default async function ingestor(req) {
106106
}
107107

108108
// Check if signing address is an alias
109-
const aliasTypes = ['follow', 'unfollow', 'subscribe', 'unsubscribe', 'profile', 'statement'];
109+
const aliasTypes = [
110+
'follow',
111+
'unfollow',
112+
'subscribe',
113+
'unsubscribe',
114+
'profile',
115+
'statement',
116+
'subscription',
117+
'update-subscription',
118+
'delete-subscription'
119+
];
110120
const aliasOptionTypes = ['vote', 'vote-array', 'vote-string', 'proposal', 'delete-proposal'];
111121
if (body.address !== message.from) {
112122
if (!aliasTypes.includes(type) && !aliasOptionTypes.includes(type))

0 commit comments

Comments
 (0)