Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add configuration variables for Mastodon source #46

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions schema/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const (
Crossbell // crossbell
Ethereum // ethereum
Farcaster // farcaster
Mastodon // mastodon
FrankLi123 marked this conversation as resolved.
Show resolved Hide resolved
Gnosis // gnosis
Linea // linea
Optimism // optimism
Expand Down Expand Up @@ -49,6 +50,7 @@ const (
ArweaveSource Source = "arweave"
EthereumSource Source = "ethereum"
FarcasterSource Source = "farcaster"
MastodonSource Source = "mastodon"
RSSSource Source = "rss"
)

Expand All @@ -60,6 +62,8 @@ func (n Network) Source() Source {
return EthereumSource
case Farcaster:
return FarcasterSource
case Mastodon:
FrankLi123 marked this conversation as resolved.
Show resolved Hide resolved
return MastodonSource
case RSS:
return RSSSource
default:
Expand Down
68 changes: 36 additions & 32 deletions schema/network/network_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading