tmolitor-stud-tu / mod_push_appserver

Simple and extendable appserver for XMPP pushes (aka. XEP-0357)
MIT License
25 stars 9 forks source link

Invalid syntax? Lua has no support for C-like ternary operator #7

Closed marc0s closed 6 years ago

marc0s commented 6 years ago

https://github.com/tmolitor-stud-tu/mod_push_appserver/blob/98b2aea716ac72b899eb8825d05478e7d1674072/mod_push_appserver_apns/mod_push_appserver_apns.lua#L197

The error is modulemanager error Unable to load module 'push_appserver_apns': ...ody/external-modules/mod_push_appserver_apns/mod_push_appserver_apns.lua:197: unexpected symbol near '?'

Replacing that statement with priority = summary["last-message-body"] ~= nil and "high" or "silent"; makes it work.

Would you like me to submit a PR?

tmolitor-stud-tu commented 6 years ago

Oh, my bad. I fixed it no need for a pull request, but thanks!