1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
Ryan Fox 21d2927e50
Stop using old API for mention searches
This caused some errors on GoToSocial.
2022-04-10 16:57:59 -07:00
Ryan Fox bf734205da
Minor spacing tweaks 2022-04-10 16:35:09 -07:00
Ryan Fox ba14afda40
GoToSocial: Fix streaming
It did not like the trailing slash, lol.
2022-04-10 16:27:55 -07:00
6 changed files with 14 additions and 14 deletions

View File

@ -1171,3 +1171,8 @@ audio.viewer-content {
height: 20px;
vertical-align: bottom;
}
.thread-target .emoji-custom {
height: 1.3em;
vertical-align: top;
}

View File

@ -254,7 +254,7 @@ searchAccounts client query limit resolve =
Just client ->
let
qs =
[ ( "q", query )
[ ( "q", "@"++query )
, ( "limit", toString limit )
, ( "resolve"
, if resolve then
@ -262,11 +262,12 @@ searchAccounts client query limit resolve =
else
"false"
)
, ( "exclude_unreviewed", "false" )
]
in
HttpBuilder.get ApiUrl.searchAccount
HttpBuilder.get ApiUrl.search
|> withClient client
|> withBodyDecoder (Decode.list accountDecoder)
|> withBodyDecoder (searchResultsDecoder)
|> withQueryParams qs
|> send (MastodonEvent << AutoSearch)

View File

@ -31,7 +31,6 @@ module Mastodon.ApiUrl
, unblock
, uploadMedia
, streaming
, searchAccount
, search
)
@ -112,11 +111,6 @@ search =
api2Prefix ++ "/search"
searchAccount : String
searchAccount =
accounts ++ "search"
relationships : String
relationships =
accounts ++ "relationships"
@ -209,7 +203,7 @@ unfavourite (StatusId id) =
streaming : String
streaming =
apiPrefix ++ "/streaming/"
apiPrefix ++ "/streaming"
uploadMedia : String

View File

@ -59,7 +59,7 @@ type MastodonMsg
| AccountUnblocked Account (MastodonResult Relationship)
| AccountUnmuted Account (MastodonResult Relationship)
| AppRegistered (MastodonResult AppRegistration)
| AutoSearch (MastodonResult (List Account))
| AutoSearch (MastodonResult SearchResults)
| Blocks Bool (MastodonResult (List Account))
| CurrentUser (MastodonResult Account)
| FavoriteAdded (MastodonResult Status)

View File

@ -381,10 +381,10 @@ update msg ({ accountInfo, search } as model) =
{ draft
| showAutoMenu =
Update.Draft.showAutoMenu
decoded
decoded.accounts
draft.autoAtPosition
draft.autoQuery
, autoAccounts = decoded
, autoAccounts = decoded.accounts
}
}
-- Force selection of the first item after each

View File

@ -330,7 +330,7 @@ statusView context ({ account, content, media_attachments, reblog, mentions, pin
[ Common.icon "fire"
, a (accountLinkAttributes ++ [ class "reblogger" ])
[ span [ class "display-name" ] <| Common.accountDisplayNameRich account ]
, text " boosted"
, text "boosted"
]
, Lazy.lazy3 statusView context reblog clickOpen
]