MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _story_active_usernames

Function _story_active_usernames

Scripts/ButSystem.py:18555–18567  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18553 {% else %}
18554 <span class="msg-text">{{ m.body }}</span>
18555 {% endif %}
18556 </div>
18557 <div class="msg-meta">
18558 <span class="ts" data-utc="{{ m.created_at_utc }}">{{ m.created_at_local }}</span>
18559 </div>
18560</div>
18561"""
18562
18563def _discussion_build_message_dict(conn, r, me: str) -> Dict[str, Any]:
18564 """Build a Discussion message view dict (like DMs)."""
18565 v = None
18566 f = None
18567 try:
18568 if int(r.get("has_voice") or 0):
18569 v = conn.execute("SELECT id, mime FROM discussion_voice WHERE msg_id=? ORDER BY id DESC LIMIT 1", (r["id"],)).fetchone()
18570 except Exception:

Callers 2

inject_ctxFunction · 0.70
api_usersFunction · 0.70

Calls 3

_stories_tables_initFunction · 0.70
db_connectFunction · 0.70
_story_cutoff_zFunction · 0.70

Tested by

no test coverage detected