Compare commits
3 Commits
9f61ebca7c
...
21d2927e50
Author | SHA1 | Date |
---|---|---|
Ryan Fox | 21d2927e50 | |
Ryan Fox | bf734205da | |
Ryan Fox | ba14afda40 |
|
@ -1171,3 +1171,8 @@ audio.viewer-content {
|
||||||
height: 20px;
|
height: 20px;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.thread-target .emoji-custom {
|
||||||
|
height: 1.3em;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
|
@ -254,7 +254,7 @@ searchAccounts client query limit resolve =
|
||||||
Just client ->
|
Just client ->
|
||||||
let
|
let
|
||||||
qs =
|
qs =
|
||||||
[ ( "q", query )
|
[ ( "q", "@"++query )
|
||||||
, ( "limit", toString limit )
|
, ( "limit", toString limit )
|
||||||
, ( "resolve"
|
, ( "resolve"
|
||||||
, if resolve then
|
, if resolve then
|
||||||
|
@ -262,11 +262,12 @@ searchAccounts client query limit resolve =
|
||||||
else
|
else
|
||||||
"false"
|
"false"
|
||||||
)
|
)
|
||||||
|
, ( "exclude_unreviewed", "false" )
|
||||||
]
|
]
|
||||||
in
|
in
|
||||||
HttpBuilder.get ApiUrl.searchAccount
|
HttpBuilder.get ApiUrl.search
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list accountDecoder)
|
|> withBodyDecoder (searchResultsDecoder)
|
||||||
|> withQueryParams qs
|
|> withQueryParams qs
|
||||||
|> send (MastodonEvent << AutoSearch)
|
|> send (MastodonEvent << AutoSearch)
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ module Mastodon.ApiUrl
|
||||||
, unblock
|
, unblock
|
||||||
, uploadMedia
|
, uploadMedia
|
||||||
, streaming
|
, streaming
|
||||||
, searchAccount
|
|
||||||
, search
|
, search
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -112,11 +111,6 @@ search =
|
||||||
api2Prefix ++ "/search"
|
api2Prefix ++ "/search"
|
||||||
|
|
||||||
|
|
||||||
searchAccount : String
|
|
||||||
searchAccount =
|
|
||||||
accounts ++ "search"
|
|
||||||
|
|
||||||
|
|
||||||
relationships : String
|
relationships : String
|
||||||
relationships =
|
relationships =
|
||||||
accounts ++ "relationships"
|
accounts ++ "relationships"
|
||||||
|
@ -209,7 +203,7 @@ unfavourite (StatusId id) =
|
||||||
|
|
||||||
streaming : String
|
streaming : String
|
||||||
streaming =
|
streaming =
|
||||||
apiPrefix ++ "/streaming/"
|
apiPrefix ++ "/streaming"
|
||||||
|
|
||||||
|
|
||||||
uploadMedia : String
|
uploadMedia : String
|
||||||
|
|
|
@ -59,7 +59,7 @@ type MastodonMsg
|
||||||
| AccountUnblocked Account (MastodonResult Relationship)
|
| AccountUnblocked Account (MastodonResult Relationship)
|
||||||
| AccountUnmuted Account (MastodonResult Relationship)
|
| AccountUnmuted Account (MastodonResult Relationship)
|
||||||
| AppRegistered (MastodonResult AppRegistration)
|
| AppRegistered (MastodonResult AppRegistration)
|
||||||
| AutoSearch (MastodonResult (List Account))
|
| AutoSearch (MastodonResult SearchResults)
|
||||||
| Blocks Bool (MastodonResult (List Account))
|
| Blocks Bool (MastodonResult (List Account))
|
||||||
| CurrentUser (MastodonResult Account)
|
| CurrentUser (MastodonResult Account)
|
||||||
| FavoriteAdded (MastodonResult Status)
|
| FavoriteAdded (MastodonResult Status)
|
||||||
|
|
|
@ -381,10 +381,10 @@ update msg ({ accountInfo, search } as model) =
|
||||||
{ draft
|
{ draft
|
||||||
| showAutoMenu =
|
| showAutoMenu =
|
||||||
Update.Draft.showAutoMenu
|
Update.Draft.showAutoMenu
|
||||||
decoded
|
decoded.accounts
|
||||||
draft.autoAtPosition
|
draft.autoAtPosition
|
||||||
draft.autoQuery
|
draft.autoQuery
|
||||||
, autoAccounts = decoded
|
, autoAccounts = decoded.accounts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
-- Force selection of the first item after each
|
-- Force selection of the first item after each
|
||||||
|
|
|
@ -330,7 +330,7 @@ statusView context ({ account, content, media_attachments, reblog, mentions, pin
|
||||||
[ Common.icon "fire"
|
[ Common.icon "fire"
|
||||||
, a (accountLinkAttributes ++ [ class "reblogger" ])
|
, a (accountLinkAttributes ++ [ class "reblogger" ])
|
||||||
[ span [ class "display-name" ] <| Common.accountDisplayNameRich account ]
|
[ span [ class "display-name" ] <| Common.accountDisplayNameRich account ]
|
||||||
, text " boosted"
|
, text "boosted"
|
||||||
]
|
]
|
||||||
, Lazy.lazy3 statusView context reblog clickOpen
|
, Lazy.lazy3 statusView context reblog clickOpen
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue