Ditch the hash field on PGP keys - the ETag will handle cache-busting, so a nice short URL for the key is fine now
This commit is contained in:
parent
ddcca3104e
commit
2eec12a2e3
3 changed files with 1 additions and 3 deletions
|
@ -10,7 +10,6 @@ User
|
||||||
PgpKey
|
PgpKey
|
||||||
userId UserId
|
userId UserId
|
||||||
fingerprint Text maxlen=40
|
fingerprint Text maxlen=40
|
||||||
hash Text maxlen=22
|
|
||||||
UniqueFingerprint fingerprint
|
UniqueFingerprint fingerprint
|
||||||
|
|
||||||
Site
|
Site
|
||||||
|
|
|
@ -26,8 +26,7 @@ prettyPgp :: PgpKey -> Text
|
||||||
prettyPgp = T.unwords . T.chunksOf 4 . pgpKeyFingerprint
|
prettyPgp = T.unwords . T.chunksOf 4 . pgpKeyFingerprint
|
||||||
|
|
||||||
routeFromPgp :: PgpKey -> Route App
|
routeFromPgp :: PgpKey -> Route App
|
||||||
routeFromPgp PgpKey { pgpKeyFingerprint = f, pgpKeyHash = h } =
|
routeFromPgp PgpKey { pgpKeyFingerprint = f } = staticR ["pgp", T.takeEnd 8 f ++ ".asc"]
|
||||||
StaticR $ StaticRoute ["pgp", h, T.takeEnd 8 f ++ ".asc"] []
|
|
||||||
|
|
||||||
hcard :: Entity User -> Widget
|
hcard :: Entity User -> Widget
|
||||||
hcard (Entity userId user) = do
|
hcard (Entity userId user) = do
|
||||||
|
|
Loading…
Reference in a new issue