projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add ignore hosts and TLDs for rich_media
[akkoma]
/
lib
/
pleroma
/
clippy.ex
diff --git
a/lib/pleroma/clippy.ex
b/lib/pleroma/clippy.ex
index 4e9bdbe198b6002d714372eee683e0318c955e7f..bd20952a6952a4c6ee130b620097bd23bb66ae99 100644
(file)
--- a/
lib/pleroma/clippy.ex
+++ b/
lib/pleroma/clippy.ex
@@
-7,13
+7,13
@@
defmodule Pleroma.Clippy do
# No software is complete until they have a Clippy implementation.
# A ballmer peak _may_ be required to change this module.
# No software is complete until they have a Clippy implementation.
# A ballmer peak _may_ be required to change this module.
- def tip
()
do
+ def tip do
tips()
|> Enum.random()
|> puts()
end
tips()
|> Enum.random()
|> puts()
end
- def tips
()
do
+ def tips do
host = Pleroma.Config.get([Pleroma.Web.Endpoint, :url, :host])
[
host = Pleroma.Config.get([Pleroma.Web.Endpoint, :url, :host])
[
@@
-92,8
+92,8
@@
defmodule Pleroma.Clippy do
# surrond one/five line clippy with blank lines around to not fuck up the layout
#
# surrond one/five line clippy with blank lines around to not fuck up the layout
#
- # yes this fix sucks but it's good enough, have you ever seen a release of windows
wihtout some butched
- # features anyway?
+ # yes this fix sucks but it's good enough, have you ever seen a release of windows
+ #
without some butched
features anyway?
lines =
if length(lines) == 1 or length(lines) == 5 do
[""] ++ lines ++ [""]
lines =
if length(lines) == 1 or length(lines) == 5 do
[""] ++ lines ++ [""]