Skip to content

Commit 25991e4

Browse files
refactor(syndicator-mastodon): return undefined if unable to like or repost a mastodon status
1 parent 7b681f7 commit 25991e4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/syndicator-mastodon/lib/mastodon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const mastodon = ({
138138
}
139139

140140
// Do not syndicate reposts of other URLs
141-
return false;
141+
return;
142142
}
143143

144144
if (properties["like-of"]) {
@@ -148,7 +148,7 @@ export const mastodon = ({
148148
}
149149

150150
// Do not syndicate likes of other URLs
151-
return false;
151+
return;
152152
}
153153

154154
const status = createStatus(properties, {

packages/syndicator-mastodon/test/unit/mastodon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe("syndicator-mastodon/lib/mastodon", () => {
112112
me,
113113
);
114114

115-
assert.equal(result, false);
115+
assert.equal(result, undefined);
116116
});
117117

118118
it("Posts a repost of a Mastodon status to Mastodon", async () => {
@@ -132,7 +132,7 @@ describe("syndicator-mastodon/lib/mastodon", () => {
132132
me,
133133
);
134134

135-
assert.equal(result, false);
135+
assert.equal(result, undefined);
136136
});
137137

138138
it("Posts a quote status to Mastodon", async () => {

0 commit comments

Comments
 (0)